mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 访问授权码输入错误 3 次后加入验证码 https://github.com/siyuan-note/siyuan/issues/5429
This commit is contained in:
parent
527753113b
commit
b4208bbf36
6 changed files with 85 additions and 13 deletions
|
|
@ -26,6 +26,12 @@ import (
|
|||
type SessionData struct {
|
||||
ID int
|
||||
AccessAuthCode string
|
||||
WrongAuthCount int
|
||||
Captcha string
|
||||
}
|
||||
|
||||
func (sd *SessionData) NeedCaptcha() bool {
|
||||
return 3 < sd.WrongAuthCount
|
||||
}
|
||||
|
||||
// Save saves the current session of the specified context.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue