aboutsummaryrefslogtreecommitdiff
path: root/routers/user/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/auth.go')
-rw-r--r--routers/user/auth.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 3f37b090..f42ad4f3 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -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)