Skip to content

Commit

Permalink
fix: reset password email (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubfaouzi authored Nov 28, 2024
1 parent 4c08a7f commit 98d8618
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/auth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,17 @@ func (r resource) resetPassword(c echo.Context) error {
}

body := new(bytes.Buffer)
link := r.UIAddress + "/auth/forgot-password/?token=" +
resp.token + "&guid=" + resp.guid

templateData := struct {
Username string
ActionURL string
Token string
Guid string
HelpURL string
SupportEmail string
}{
Username: resp.username,
ActionURL: link,
Token: resp.token,
Guid: resp.guid,
HelpURL: "https://about.saferwall.com/",
SupportEmail: "contact@saferwall.com",
}
Expand Down

0 comments on commit 98d8618

Please sign in to comment.