mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
feat: verbose error on not enabled SSO sign up
This commit is contained in:
parent
42eaaf8de7
commit
4cfb22a2c8
1 changed files with 4 additions and 0 deletions
|
|
@ -181,6 +181,10 @@ export class OidcModel {
|
|||
}
|
||||
|
||||
if (!user) {
|
||||
// this will allow admin account creation even if SSO signups are disabled following the foregoing logic
|
||||
if (!config.auth.enableSingleSignOnSignUp) {
|
||||
throw new Error('Sign up via SSO is not enabled');
|
||||
}
|
||||
throw new Error('There was a problem signing up or logging in!');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue