mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 改进多工作空间鉴权
This commit is contained in:
parent
59bd919b0c
commit
4e9e111ee7
4 changed files with 33 additions and 11 deletions
|
|
@ -208,7 +208,8 @@ func setAccessAuthCode(c *gin.Context) {
|
|||
model.Conf.Save()
|
||||
|
||||
session := util.GetSession(c)
|
||||
session.AccessAuthCode = aac
|
||||
workspaceSession := util.GetWorkspaceSession(session)
|
||||
workspaceSession.AccessAuthCode = aac
|
||||
session.Save(c)
|
||||
go func() {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue