Refactor password validation and config defaults (#7859)

* refactor password validation and config defaults

* reorder config lines for clarity
This commit is contained in:
Chris
2017-11-20 11:04:04 -06:00
committed by GitHub
parent ab6ef954b4
commit d1cee02247
7 changed files with 1180 additions and 982 deletions

View File

@@ -310,7 +310,7 @@ func adminResetPassword(c *Context, w http.ResponseWriter, r *http.Request) {
}
newPassword := props["new_password"]
if err := utils.IsPasswordValid(newPassword); err != nil {
if err := c.App.IsPasswordValid(newPassword); err != nil {
c.Err = err
return
}