8000 fix: remove auth middleware for authn login (#8407) · AlistGo/alist@e532ab3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit e532ab3

Browse files
authored
fix: remove auth middleware for authn login (#8407)
1 parent bf0705e commit e532ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ func Init(e *gin.Engine) {
7777
api.GET("/auth/sso_get_token", handles.SSOLoginCallback)
7878

7979
// webauthn
80+
api.GET("/authn/webauthn_begin_login", handles.BeginAuthnLogin)
81+
api.POST("/authn/webauthn_finish_login", handles.FinishAuthnLogin)
8082
webauthn.GET("/webauthn_begin_registration", handles.BeginAuthnRegistration)
8183
webauthn.POST("/webauthn_finish_registration", handles.FinishAuthnRegistration)
82-
webauthn.GET("/webauthn_begin_login", handles.BeginAuthnLogin)
83-
webauthn.POST("/webauthn_finish_login", handles.FinishAuthnLogin)
8484
webauthn.POST("/delete_authn", handles.DeleteAuthnLogin)
8585
webauthn.GET("/getcredentials", handles.GetAuthnCredentials)
8686

0 commit comments

Comments
 (0)
0