mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
Refactor application.FailedSigninLimit code
This commit is contained in:
@ -384,6 +384,13 @@ func GetMaskedApplication(application *Application, userId string) *Application
|
||||
application.InvitationCodes = []string{"***"}
|
||||
}
|
||||
|
||||
if application.FailedSigninLimit == 0 {
|
||||
application.FailedSigninLimit = DefaultFailedSigninLimit
|
||||
}
|
||||
if application.FailedSigninfrozenTime == 0 {
|
||||
application.FailedSigninfrozenTime = DefaultFailedSigninfrozenTime
|
||||
}
|
||||
|
||||
return application
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user