Skip to content

Commit 4457d0e

Browse files
authored
Honor REGISTER_MANUAL_CONFIRM when doing openid registration (#14548)
REGISTER_MANUAL_CONFIRM is not honored when doing performing an openid registration. The new account is directly accessible. With this patch, the manual confirm flag gets honored in the same way as a "normal" registration.
1 parent 32c4563 commit 4457d0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/user/auth_openid.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func RegisterOpenIDPost(ctx *context.Context) {
415415
Name: form.UserName,
416416
Email: form.Email,
417417
Passwd: password,
418-
IsActive: !setting.Service.RegisterEmailConfirm,
418+
IsActive: !(setting.Service.RegisterEmailConfirm || setting.Service.RegisterManualConfirm),
419419
}
420420
//nolint: dupl
421421
if err := models.CreateUser(u); err != nil {

0 commit comments

Comments
 (0)