1
0

Add endpoint to disable totp auth

This commit is contained in:
kolaente
2020-04-18 01:38:49 +02:00
parent 87d0c9088d
commit 895d9613b5
4 changed files with 67 additions and 4 deletions

View File

@ -212,6 +212,7 @@ func registerAPIRoutes(a *echo.Group) {
u.GET("/settings/totp", apiv1.UserTOTP)
u.POST("/settings/totp/enroll", apiv1.UserTOTPEnroll)
u.POST("/settings/totp/enable", apiv1.UserTOTPEnable)
u.POST("/settings/totp/disable", apiv1.UserTOTPDisable)
u.GET("/settings/totp/qrcode", apiv1.UserTOTPQrCode)
listHandler := &handler.WebHandler{