fix(core): Persist CurrentAuthenticationMethod setting change (#5762)

* limit user invites when saml is enabled

* persist CurrentAuthenticationMethod
This commit is contained in:
Michael Auerswald
2023-03-23 15:13:05 +01:00
committed by GitHub
parent 57748b71e5
commit 4498c6013d
3 changed files with 12 additions and 5 deletions

View File

@@ -210,7 +210,7 @@ export class SamlService {
}
this._samlPreferences.metadata = prefs.metadata;
}
setSamlLoginEnabled(prefs.loginEnabled ?? isSamlLoginEnabled());
await setSamlLoginEnabled(prefs.loginEnabled ?? isSamlLoginEnabled());
setSamlLoginLabel(prefs.loginLabel ?? getSamlLoginLabel());
this.getIdentityProviderInstance(true);
const result = await this.saveSamlPreferencesToDb();