Skip to content

Commit b00e62c

Browse files
authored
ui: Replenish the missing ‘PageIsSignUp’ in sign up view (#11390)
Signed-off-by: a1012112796 <[email protected]>
1 parent 08611fb commit b00e62c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/user/auth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ func SignUp(ctx *context.Context) {
10281028
ctx.Data["RecaptchaURL"] = setting.Service.RecaptchaURL
10291029
ctx.Data["CaptchaType"] = setting.Service.CaptchaType
10301030
ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey
1031+
ctx.Data["PageIsSignUp"] = true
10311032

10321033
//Show Disabled Registration message if DisableRegistration or AllowOnlyExternalRegistration options are true
10331034
ctx.Data["DisableRegistration"] = setting.Service.DisableRegistration || setting.Service.AllowOnlyExternalRegistration
@@ -1045,6 +1046,7 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo
10451046
ctx.Data["RecaptchaURL"] = setting.Service.RecaptchaURL
10461047
ctx.Data["CaptchaType"] = setting.Service.CaptchaType
10471048
ctx.Data["RecaptchaSitekey"] = setting.Service.RecaptchaSitekey
1049+
ctx.Data["PageIsSignUp"] = true
10481050

10491051
//Permission denied if DisableRegistration or AllowOnlyExternalRegistration options are true
10501052
if setting.Service.DisableRegistration || setting.Service.AllowOnlyExternalRegistration {

0 commit comments

Comments
 (0)