mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 14:26:18 +00:00
add temporary error message for unavailable OIDC authentication in forms
This commit is contained in:
@@ -279,6 +279,7 @@ class AuthMethodForm(forms.ModelForm):
|
|||||||
except Exception:
|
except Exception:
|
||||||
self.add_error('totp_secret', _('Invalid TOTP secret format. Must be a valid Base32 string.'))
|
self.add_error('totp_secret', _('Invalid TOTP secret format. Must be a valid Base32 string.'))
|
||||||
elif auth_type == 'oidc':
|
elif auth_type == 'oidc':
|
||||||
|
self.add_error('auth_type', _('OIDC authentication is temporarily unavailable and will be available soon.'))
|
||||||
if totp_secret:
|
if totp_secret:
|
||||||
self.add_error('totp_secret', _('TOTP secret must be empty for OIDC authentication.'))
|
self.add_error('totp_secret', _('TOTP secret must be empty for OIDC authentication.'))
|
||||||
if cleaned_data.get('totp_pin'):
|
if cleaned_data.get('totp_pin'):
|
||||||
|
|||||||
Reference in New Issue
Block a user