Merge remote-tracking branch 'origin/api-v1.10.0' into dev
This commit is contained in:
commit
b874f130cb
1 changed files with 2 additions and 0 deletions
|
|
@ -740,6 +740,8 @@ def authenticate(email, password, for_change_password=False):
|
|||
"email": email,
|
||||
**r
|
||||
}
|
||||
if config("enforce_SSO", cast=bool, default=False) and helper.is_saml2_available():
|
||||
return {"errors": ["must sign-in with SSO, enforced by admin"]}
|
||||
return None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue