mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 23:08:07 -04:00
Invite users to choose how team members sign in
Email auth is a new feature that currently we’ve only given to teams who have contact us with a problem. At the moment, we’re aware of all the teams that are sharing phone numbers when they sign in. We think that in the future there will be other teams who encounter this problem. So we should let them know that they should contact us if they are having the problem. At the moment we want to talk to teams before giving them access to the feature, so that we’re confident it’s only going to teams from whom it’s more secure than using a text message code.
This commit is contained in:
@@ -536,6 +536,15 @@ def service_set_letters(service_id):
|
||||
)
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/service-settings/set-auth-type", methods=['GET'])
|
||||
@login_required
|
||||
@user_has_permissions('manage_settings', admin_override=True)
|
||||
def service_set_auth_type(service_id):
|
||||
return render_template(
|
||||
'views/service-settings/set-auth-type.html',
|
||||
)
|
||||
|
||||
|
||||
@main.route("/services/<service_id>/service-settings/letter-contacts", methods=['GET'])
|
||||
@login_required
|
||||
@user_has_permissions('manage_settings', admin_override=True)
|
||||
|
||||
@@ -26,6 +26,16 @@
|
||||
{{ edit_field('Change', url_for('.service_name_change', service_id=current_service.id)) }}
|
||||
{% endcall %}
|
||||
|
||||
{% call row() %}
|
||||
{{ text_field('Sign-in method') }}
|
||||
{{ text_field(
|
||||
'Email link or text message code'
|
||||
if 'email_auth' in current_service.permissions
|
||||
else 'Text message code'
|
||||
) }}
|
||||
{{ edit_field('Change', url_for('.service_set_auth_type', service_id=current_service.id)) }}
|
||||
{% endcall %}
|
||||
|
||||
{% endcall %}
|
||||
|
||||
{% call mapping_table(
|
||||
|
||||
44
app/templates/views/service-settings/set-auth-type.html
Normal file
44
app/templates/views/service-settings/set-auth-type.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Text message sender
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-five-sixths">
|
||||
<h1 class="heading-large">Sign-in method</h1>
|
||||
{% if 'email_auth' in current_service.permissions %}
|
||||
<p class="heading-small bottom-gutter-2-3">
|
||||
Email link or text message code
|
||||
</p>
|
||||
<p>
|
||||
Your team members can sign in with either a text message code
|
||||
or an email link.
|
||||
</p>
|
||||
<p>
|
||||
You can <a href="{{ url_for('.manage_users', service_id=current_service.id) }}">set the sign-in method for individual team members</a>.
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="heading-small bottom-gutter-2-3">
|
||||
Text message code
|
||||
</p>
|
||||
<p>
|
||||
Your team members sign in with a text message code.
|
||||
</p>
|
||||
<p>
|
||||
If signing in with a text message is a problem for your team,
|
||||
please <a href="{{ url_for('.support') }}">contact us</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
{{ page_footer(
|
||||
back_link=url_for('.service_settings', service_id=current_service.id),
|
||||
back_link_text='Back to settings'
|
||||
) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user