Skip to content

Commit b196930

Browse files
committed
add more missing variables
1 parent 63fc0fb commit b196930

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routers/web/auth/linkaccount.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ func LinkAccountPostSignIn(ctx *context.Context) {
141141
ctx.Data["McaptchaURL"] = setting.Service.McaptchaURL
142142
ctx.Data["CfTurnstileSitekey"] = setting.Service.CfTurnstileSitekey
143143
ctx.Data["DisableRegistration"] = setting.Service.DisableRegistration
144+
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration
145+
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm
144146
ctx.Data["ShowRegistrationButton"] = false
145147

146148
// use this to set the right link into the signIn and signUp templates in the link_account template
@@ -229,6 +231,8 @@ func LinkAccountPostRegister(ctx *context.Context) {
229231
ctx.Data["McaptchaURL"] = setting.Service.McaptchaURL
230232
ctx.Data["CfTurnstileSitekey"] = setting.Service.CfTurnstileSitekey
231233
ctx.Data["DisableRegistration"] = setting.Service.DisableRegistration
234+
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration
235+
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm
232236
ctx.Data["ShowRegistrationButton"] = false
233237

234238
// use this to set the right link into the signIn and signUp templates in the link_account template

0 commit comments

Comments
 (0)