mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve auth
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
67c7dd1e06
commit
eec003b303
2 changed files with 12 additions and 1 deletions
|
|
@ -120,7 +120,9 @@ func LoginAuth(c *gin.Context) {
|
|||
|
||||
if err := session.Save(c); err != nil {
|
||||
logging.LogErrorf("save session failed: " + err.Error())
|
||||
c.Status(http.StatusInternalServerError)
|
||||
session.Clear(c)
|
||||
ret.Code = 1
|
||||
ret.Msg = Conf.Language(258)
|
||||
return
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue