Merge pull request #3901 from alphagov/prevent-admin-auth-change

Prevent switching auth type for Platform Admins
This commit is contained in:
Ben Thorner
2021-05-28 16:07:11 +01:00
committed by GitHub
6 changed files with 147 additions and 84 deletions

View File

@@ -11,7 +11,11 @@
{% endif %}
{% if service_has_email_auth %}
{% if not mobile_number %}
{% if user.platform_admin %}
<p class="bottom-gutter">
Platform admin users will login with a security key.
</p>
{% elif not mobile_number %}
{{ radios(
form.login_authentication,
disable=['sms_auth'],