Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
geosoft1 committed Apr 26, 2019
1 parent 4ae019b commit 22de7e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui_signup.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ func reset(w http.ResponseWriter, r *http.Request) {
return
}
// TODO reset password to random, uncomment the following 4 lines
//password := user.Password
//user.Password = token.GetToken(8)
//if err := sqlUpdateUser(&user, user.Email, password); err != nil {
//}
// user.Password = token.GetToken(8)
// if err := sqlUpdateUser(&user); err != nil {
// http.Error(w, http.StatusText(http.StatusNotAcceptable), http.StatusNotAcceptable)
// return
// }
// https://stackoverflow.com/a/24431749
mail := gomail.NewMessage()
mail.SetAddressHeader("From", config.SMTP.User, config.SMTP.Name)
Expand Down

0 comments on commit 22de7e0

Please sign in to comment.