Create navbar and add template globals
This commit is contained in:
parent
f491fdd9f4
commit
5f0c7883b1
5 changed files with 192 additions and 4 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func MfaEnrollMiddleware(c *fiber.Ctx) error {
|
||||
if c.Path() == "/login" || c.Path() == "/welcome" || strings.HasPrefix(c.Path(), "/totp/") {
|
||||
if c.Path() == "/login" || c.Path() == "/welcome" || strings.HasPrefix(c.Path(), "/totp/") || c.Path() == "/logout" {
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ func MfaEnrollMiddleware(c *fiber.Ctx) error {
|
|||
}
|
||||
|
||||
func MfaVerifyMiddleware(c *fiber.Ctx) error {
|
||||
if c.Path() == "/login" || c.Path() == "/welcome" || strings.HasPrefix(c.Path(), "/totp/") {
|
||||
if c.Path() == "/login" || c.Path() == "/welcome" || strings.HasPrefix(c.Path(), "/totp/") || c.Path() == "/logout" {
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue