@@ -277,9 +277,15 @@ func RegisterRoutes(m *web.Route) {
277
277
m .Get ("/{provider}" , auth .SignInOAuth )
278
278
m .Get ("/{provider}/callback" , auth .SignInOAuthCallback )
279
279
})
280
- m .Get ("/link_account" , auth .LinkAccount )
281
- m .Post ("/link_account_signin" , bindIgnErr (forms.SignInForm {}), auth .LinkAccountPostSignIn )
282
- m .Post ("/link_account_signup" , bindIgnErr (forms.RegisterForm {}), auth .LinkAccountPostRegister )
280
+ m .Group ("/link_account" , func () {
281
+ m .Get ("" , auth .LinkAccount )
282
+ }, openIDSignInEnabled )
283
+ m .Group ("/link_account_signin" , func () {
284
+ m .Post ("" , bindIgnErr (forms.SignInForm {}), auth .LinkAccountPostSignIn )
285
+ }, openIDSignInEnabled )
286
+ m .Group ("/link_account_signup" , func () {
287
+ m .Post ("" , bindIgnErr (forms.RegisterForm {}), auth .LinkAccountPostRegister )
288
+ }, openIDSignUpEnabled )
283
289
m .Group ("/two_factor" , func () {
284
290
m .Get ("" , auth .TwoFactor )
285
291
m .Post ("" , bindIgnErr (forms.TwoFactorAuthForm {}), auth .TwoFactorPost )
@@ -342,7 +348,9 @@ func RegisterRoutes(m *web.Route) {
342
348
m .Post ("/delete" , security .DeleteOpenID )
343
349
m .Post ("/toggle_visibility" , security .ToggleOpenIDVisibility )
344
350
}, openIDSignInEnabled )
345
- m .Post ("/account_link" , security .DeleteAccountLink )
351
+ m .Group ("/account_link" , func () {
352
+ m .Post ("" , security .DeleteAccountLink )
353
+ }, openIDSignInEnabled )
346
354
})
347
355
m .Group ("/applications/oauth2" , func () {
348
356
m .Get ("/{id}" , user_setting .OAuth2ApplicationShow )
0 commit comments