refactor: login & refresh token

This commit is contained in:
naiba
2024-10-20 14:05:43 +08:00
parent eabe55a753
commit 71891b2d61
10 changed files with 137 additions and 97 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func (v *apiV1) monitorHistoriesById(c *gin.Context) {
}
_, isMember := c.Get(model.CtxKeyAuthorizedUser)
_, isViewPasswordVerfied := c.Get(model.CtxKeyViewPasswordVerified)
var isViewPasswordVerfied bool
authorized := isMember || isViewPasswordVerfied
if server.HideForGuest && !authorized {