We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ae019b commit 22de7e0Copy full SHA for 22de7e0
ui_signup.go
@@ -39,10 +39,11 @@ func reset(w http.ResponseWriter, r *http.Request) {
39
return
40
}
41
// TODO reset password to random, uncomment the following 4 lines
42
- //password := user.Password
43
- //user.Password = token.GetToken(8)
44
- //if err := sqlUpdateUser(&user, user.Email, password); err != nil {
45
- //}
+ // user.Password = token.GetToken(8)
+ // if err := sqlUpdateUser(&user); err != nil {
+ // http.Error(w, http.StatusText(http.StatusNotAcceptable), http.StatusNotAcceptable)
+ // return
46
+ // }
47
// https://stackoverflow.com/a/24431749
48
mail := gomail.NewMessage()
49
mail.SetAddressHeader("From", config.SMTP.User, config.SMTP.Name)
0 commit comments