Merge branch 'MHSanaei:main' into main

This commit is contained in:
心隨緣動
2024-07-05 22:19:17 +08:00
committed by GitHub
4 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ func (a *IndexController) login(c *gin.Context) {
func (a *IndexController) logout(c *gin.Context) {
user := session.GetLoginUser(c)
if user != nil {
logger.Info(user.Username, "logged out successfully")
logger.Info(user.Username, " logged out successfully")
}
session.ClearSession(c)
c.Redirect(http.StatusTemporaryRedirect, c.GetString("base_path"))