Refactor application.FailedSigninLimit code

This commit is contained in:
Yang Luo
2024-01-13 02:09:18 +08:00
parent 530d054adb
commit b1fe28fb83
4 changed files with 15 additions and 18 deletions

View File

@ -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
}