Skip to content

Commit

Permalink
fix: resend confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubfaouzi committed Nov 27, 2024
1 parent 60c30a8 commit 022bfaa
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 @@ -298,18 +298,19 @@ func (r resource) resendConfirmation(c echo.Context) error {
}

body := new(bytes.Buffer)
link := c.Request().Host + "/v1/auth/verify-account/?token=" +
resp.token + "&guid=" + resp.guid

templateData := struct {
Username string
ActionURL string
Token string
Guid string
LoginURL string
LiveChatURL string
HelpURL string
SupportEmail string
}{
Username: resp.username,
ActionURL: link,
Token: resp.token,
Guid: resp.guid,
LoginURL: "https://saferwall.com/auth/login",
LiveChatURL: "https://discord.gg/an37PYHeZP",
HelpURL: "https://about.saferwall.com/",
Expand Down

0 comments on commit 022bfaa

Please sign in to comment.