diff options
Diffstat (limited to 'newspipe/web/forms.py')
-rw-r--r-- | newspipe/web/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newspipe/web/forms.py b/newspipe/web/forms.py index 4cd552e0..7a245b94 100644 --- a/newspipe/web/forms.py +++ b/newspipe/web/forms.py @@ -173,6 +173,7 @@ class SigninForm(RedirectForm): automatic_crawling=True, is_admin=False, is_active=True, + external_auth="ldap", ) if user: validated = True @@ -199,7 +200,7 @@ class SigninForm(RedirectForm): self.password.errors.append("Wrong password") validated = False else: - self.password.errors.append("External auth unavailable. Contact the admin.") + self.password.errors.append("External auth {user.external_auth} unavailable. Contact the admin.") validated = False self.user = user return validated |