Return forbidden status in API

This commit is contained in:
Jan Bader 2022-01-21 15:07:01 +00:00
parent bc78cab715
commit 99cf27b649

View File

@ -73,7 +73,7 @@ func (h *Handler) Serve() {
unauthenticated.POST("/register", h.registerPost)
authenticated := api.Group("")
authenticated.Use(h.verifyLoginWithRedirect)
authenticated.Use(h.verifyLoginWithForbidden)
authenticated.GET("/dashboard", h.dashboard)
user := authenticated.Group("/user")