mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 23:14:32 +02:00
ensure we don’t try changing LDAP passswords
This commit is contained in:
1 parent
cb1eadc276
commit
63e21c146a
2 files changed
+7
No files matched your search
@@ -297,6 +297,12 @@ func ForgotPasswdPost(ctx *middleware.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if !u.IsLocal() {
|
||||
ctx.Data["Err_Email"] = true
|
||||
ctx.RenderWithErr(ctx.Tr("auth.non_local_account"), FORGOT_PASSWORD, nil)
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.Cache.IsExist("MailResendLimit_" + u.LowerName) {
|
||||
ctx.Data["ResendLimited"] = true
|
||||
ctx.HTML(200, FORGOT_PASSWORD)
|
||||
|
||||
Reference in new issue
Block a user