We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7019076 commit df891dcCopy full SHA for df891dc
routers/user/auth.go
@@ -942,6 +942,11 @@ func LinkAccountPostRegister(ctx *context.Context) {
942
}
943
944
945
+ if !form.IsEmailDomainAllowed() {
946
+ ctx.RenderWithErr(ctx.Tr("auth.email_domain_blacklisted"), tplLinkAccount, &form)
947
+ return
948
+ }
949
+
950
if setting.Service.AllowOnlyExternalRegistration || !setting.Service.RequireExternalRegistrationPassword {
951
// In models.User an empty password is classed as not set, so we set form.Password to empty.
952
// Eventually the database should be changed to indicate "Second Factor"-enabled accounts
0 commit comments