Improve wording

This commit is contained in:
Raphael Michel
2017-03-31 09:54:07 +02:00
parent 91c48c50e5
commit 9dacea11dd
2 changed files with 6 additions and 2 deletions

View File

@@ -47,7 +47,7 @@
{% endif %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans "Enabled devices" %}</h3>
<h3 class="panel-title">{% trans "Registered devices" %}</h3>
</div>
<ul class="list-group">
{% for d in devices %}

View File

@@ -232,7 +232,11 @@ class User2FADeviceConfirmU2FView(RecentAuthenticationRequiredMixin, TemplateVie
_('A new two-factor authentication device has been added to your account.')
])
messages.success(request, _('The device has been verified and can now be used.'))
note = ''
if not self.request.user.require_2fa:
note = ' ' + _('Please note that you still need to enable two-factor authentication for your account '
'using the buttons below to make a second factor required for logging into your accont.')
messages.success(request, _('The device has been verified and can now be used.') + note)
return redirect(reverse('control:user.settings.2fa'))
except Exception:
messages.error(request, _('The registration could not be completed. Please try again.'))