feat: verbose error on not enabled SSO sign up

This commit is contained in:
Piotr Łoboda 2026-02-25 17:32:34 +01:00
parent 42eaaf8de7
commit 4cfb22a2c8

View file

@ -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!');
}