Kyle D
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
routers/user/auth.go
|
|
@ -942,6 +942,11 @@ func LinkAccountPostRegister(ctx *context.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if !form.IsEmailDomainAllowed() { |
|
|
|
ctx.RenderWithErr(ctx.Tr("auth.email_domain_blacklisted"), tplLinkAccount, &form) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
if setting.Service.AllowOnlyExternalRegistration || !setting.Service.RequireExternalRegistrationPassword { |
|
|
|
// In models.User an empty password is classed as not set, so we set form.Password to empty.
|
|
|
|
// Eventually the database should be changed to indicate "Second Factor"-enabled accounts
|
|
|
|