add temporary error message for unavailable OIDC authentication in forms

This commit is contained in:
Eduardo Silva
2026-03-16 15:59:05 -03:00
parent 4c57f43f4b
commit c02abf335e

View File

@@ -279,6 +279,7 @@ class AuthMethodForm(forms.ModelForm):
except Exception:
self.add_error('totp_secret', _('Invalid TOTP secret format. Must be a valid Base32 string.'))
elif auth_type == 'oidc':
self.add_error('auth_type', _('OIDC authentication is temporarily unavailable and will be available soon.'))
if totp_secret:
self.add_error('totp_secret', _('TOTP secret must be empty for OIDC authentication.'))
if cleaned_data.get('totp_pin'):