|
|
@ -46,6 +46,7 @@ func LinkAccount(ctx *context.Context) { |
|
|
|
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration |
|
|
|
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration |
|
|
|
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm |
|
|
|
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm |
|
|
|
ctx.Data["ShowRegistrationButton"] = false |
|
|
|
ctx.Data["ShowRegistrationButton"] = false |
|
|
|
|
|
|
|
ctx.Data["EnablePasskeyAuth"] = setting.Service.EnablePasskeyAuth |
|
|
|
|
|
|
|
|
|
|
|
// use this to set the right link into the signIn and signUp templates in the link_account template
|
|
|
|
// use this to set the right link into the signIn and signUp templates in the link_account template
|
|
|
|
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/link_account_signin" |
|
|
|
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/link_account_signin" |
|
|
@ -145,6 +146,7 @@ func LinkAccountPostSignIn(ctx *context.Context) { |
|
|
|
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration |
|
|
|
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration |
|
|
|
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm |
|
|
|
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm |
|
|
|
ctx.Data["ShowRegistrationButton"] = false |
|
|
|
ctx.Data["ShowRegistrationButton"] = false |
|
|
|
|
|
|
|
ctx.Data["EnablePasskeyAuth"] = setting.Service.EnablePasskeyAuth |
|
|
|
|
|
|
|
|
|
|
|
// use this to set the right link into the signIn and signUp templates in the link_account template
|
|
|
|
// use this to set the right link into the signIn and signUp templates in the link_account template
|
|
|
|
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/link_account_signin" |
|
|
|
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/link_account_signin" |
|
|
@ -235,6 +237,7 @@ func LinkAccountPostRegister(ctx *context.Context) { |
|
|
|
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration |
|
|
|
ctx.Data["AllowOnlyInternalRegistration"] = setting.Service.AllowOnlyInternalRegistration |
|
|
|
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm |
|
|
|
ctx.Data["EnablePasswordSignInForm"] = setting.Service.EnablePasswordSignInForm |
|
|
|
ctx.Data["ShowRegistrationButton"] = false |
|
|
|
ctx.Data["ShowRegistrationButton"] = false |
|
|
|
|
|
|
|
ctx.Data["EnablePasskeyAuth"] = setting.Service.EnablePasskeyAuth |
|
|
|
|
|
|
|
|
|
|
|
// use this to set the right link into the signIn and signUp templates in the link_account template
|
|
|
|
// use this to set the right link into the signIn and signUp templates in the link_account template
|
|
|
|
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/link_account_signin" |
|
|
|
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/link_account_signin" |
|
|
|