diff options
Diffstat (limited to 'views.go')
-rw-r--r-- | views.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -90,6 +90,15 @@ func (v *views) ChangePassword(what string) http.Handler { } log.Println("AUDIT", "Changed", what, "password for", username) + if strings.ToUpper(what) == "SSO" { + // We need to make sure ldap password is set to sasl as well + err = pwman.LdapInfo.SetSASLPassword(username) + if err != nil { + redirectSameFlash(w, req, err.Error(), "error") + return + } + } + redirectSameFlash(w, req, fmt.Sprintf("Password %s successfully updated", what), "success") } }) |