change session name

This commit is contained in:
mhsanaei
2024-07-05 14:33:04 +02:00
parent 24b9e5bfa3
commit 02ae61fe6b
4 changed files with 15 additions and 12 deletions

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"))