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

@ -110,14 +110,6 @@ func (c *ApiController) GetApplication() {
}
}
// 0 as an initialization value, corresponding to the default configuration parameters
if application.FailedSigninLimit == 0 {
application.FailedSigninLimit = object.DefaultFailedSigninLimit
}
if application.FailedSigninfrozenTime == 0 {
application.FailedSigninfrozenTime = object.DefaultFailedSigninfrozenTime
}
c.ResponseOk(object.GetMaskedApplication(application, userId))
}