ch prefix
This commit is contained in:
0
backend/internal/appresult/logs/all.log
Normal file
0
backend/internal/appresult/logs/all.log
Normal file
@@ -74,7 +74,7 @@ func AdminPageAuth() gin.HandlerFunc {
|
||||
claims, ok := adminClaimsFromRequest(c)
|
||||
if !ok {
|
||||
ClearAuthCookies(c)
|
||||
c.Redirect(http.StatusFound, "/admin/login")
|
||||
c.Redirect(http.StatusFound, "/M0n1t0r/login")
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
@@ -94,7 +94,7 @@ func AdminGuestOnly() gin.HandlerFunc {
|
||||
}
|
||||
|
||||
c.Set("id", fmt.Sprint(claims["id"]))
|
||||
c.Redirect(http.StatusFound, "/admin")
|
||||
c.Redirect(http.StatusFound, "/M0n1t0r")
|
||||
c.Abort()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user