mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
feat: adding password expiry
This commit is contained in:
parent
5262eff022
commit
5b34b6da86
4 changed files with 20 additions and 12 deletions
|
@ -37,7 +37,7 @@ type Client struct {
|
|||
metadataKeySettings MetadataKeySettings
|
||||
|
||||
// Server Settings for password expiry
|
||||
passwordExpirySettings PasswordExpirySettings
|
||||
PasswordExpirySettings PasswordExpirySettings
|
||||
|
||||
// used for solving MFA challenges. You can block this to for example wait for user input.
|
||||
// You shouden't run any unrelated API Calls while you are in this callback.
|
||||
|
@ -249,10 +249,10 @@ func (c *Client) setPasswordExpirySettings(ctx context.Context, settings *Server
|
|||
}
|
||||
|
||||
c.log("passwordExpirySettings: %+v", passwordExpirySettings)
|
||||
c.passwordExpirySettings = *passwordExpirySettings
|
||||
c.PasswordExpirySettings = *passwordExpirySettings
|
||||
} else {
|
||||
c.log("Server has password expiry plugin disabled or not installed.")
|
||||
c.passwordExpirySettings = getDefaultPasswordExpirySettings()
|
||||
c.PasswordExpirySettings = getDefaultPasswordExpirySettings()
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue