Skip to content

Commit 22de7e0

Browse files
committed
-
1 parent 4ae019b commit 22de7e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ui_signup.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ func reset(w http.ResponseWriter, r *http.Request) {
3939
return
4040
}
4141
// 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-
//}
42+
// user.Password = token.GetToken(8)
43+
// if err := sqlUpdateUser(&user); err != nil {
44+
// http.Error(w, http.StatusText(http.StatusNotAcceptable), http.StatusNotAcceptable)
45+
// return
46+
// }
4647
// https://stackoverflow.com/a/24431749
4748
mail := gomail.NewMessage()
4849
mail.SetAddressHeader("From", config.SMTP.User, config.SMTP.Name)

0 commit comments

Comments
 (0)