forked from CGM_Public/pretix_original
Improve wording
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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.'))
|
||||
|
||||
Reference in New Issue
Block a user