mirror of
https://github.com/cuigh/swirl
synced 2024-12-28 23:02:02 +00:00
Fix #8
This commit is contained in:
parent
738c7b8086
commit
5746d9430a
@ -47,6 +47,8 @@ func Validator(setting *model.Setting) func(name, pwd string) (ticket string, er
|
|||||||
}
|
}
|
||||||
err = biz.User.Create(mu, nil)
|
err = biz.User.Create(mu, nil)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
err = certify.ErrInvalidToken
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace user session, one session is allowed per user.
|
// replace user session, one session is allowed per user.
|
||||||
|
Loading…
Reference in New Issue
Block a user