From f673f9b562fad6141155a48eff438a05ea03358e Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 11 Nov 2019 18:01:08 +0900 Subject: [PATCH] Reset password to sorta-sensical string This resets user password to something random that also reminds the user they should change it immediately after logging in, instead of a completely random jumble of characters. Ref T695 --- admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin.go b/admin.go index c5f5646..b155321 100644 --- a/admin.go +++ b/admin.go @@ -246,7 +246,7 @@ func handleAdminResetUserPass(app *App, u *User, w http.ResponseWriter, r *http. return impart.HTTPError{http.StatusFound, "/admin/users"} } // Generate new random password since none supplied - pass := passgen.New() + pass := passgen.NewWordish() hashedPass, err := auth.HashPass([]byte(pass)) if err != nil { return impart.HTTPError{http.StatusInternalServerError, fmt.Sprintf("Could not create password hash: %v", err)}