mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 19:03:49 +08:00
feat: add support for per-account MFA validity period in org setting to reduce repeated prompts (#3917)
This commit is contained in:
@ -98,6 +98,10 @@ func (c *ApiController) GetOrganization() {
|
||||
return
|
||||
}
|
||||
|
||||
if organization != nil && organization.MfaRememberInHours == 0 {
|
||||
organization.MfaRememberInHours = 12
|
||||
}
|
||||
|
||||
c.ResponseOk(organization)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user