diff --git a/dmoj/urls.py b/dmoj/urls.py
index 42edf08670..23f76a39fc 100644
--- a/dmoj/urls.py
+++ b/dmoj/urls.py
@@ -63,7 +63,7 @@
path('2fa/', two_factor.TwoFactorLoginView.as_view(), name='login_2fa'),
path('2fa/enable/', two_factor.TOTPEnableView.as_view(), name='enable_2fa'),
- path('2fa/refresh/', two_factor.TOTPRefreshView.as_view(), name='refresh_2fa'),
+ path('2fa/edit/', two_factor.TOTPEditView.as_view(), name='edit_2fa'),
path('2fa/disable/', two_factor.TOTPDisableView.as_view(), name='disable_2fa'),
path('2fa/webauthn/attest/', two_factor.WebAuthnAttestationView.as_view(), name='webauthn_attest'),
path('2fa/webauthn/assert/', two_factor.WebAuthnAttestView.as_view(), name='webauthn_assert'),
diff --git a/judge/views/two_factor.py b/judge/views/two_factor.py
index 5c6235401b..2e7dfdea73 100644
--- a/judge/views/two_factor.py
+++ b/judge/views/two_factor.py
@@ -50,7 +50,7 @@ class TOTPEnableView(TOTPView):
title = gettext_lazy('Enable Two-factor Authentication')
form_class = TOTPEnableForm
template_name = 'registration/totp_enable.html'
- is_refresh = False
+ is_edit = False
def get(self, request, *args, **kwargs):
profile = self.profile
@@ -76,9 +76,9 @@ def post(self, request, *args, **kwargs):
def get_context_data(self, **kwargs):
context = super(TOTPEnableView, self).get_context_data(**kwargs)
context['totp_key'] = self.request.session['totp_enable_key']
- context['scratch_codes'] = [] if self.is_refresh else json.loads(self.profile.scratch_codes)
+ context['scratch_codes'] = [] if self.is_edit else json.loads(self.profile.scratch_codes)
context['qr_code'] = self.render_qr_code(self.request.user.username, context['totp_key'])
- context['is_refresh'] = self.is_refresh
+ context['is_edit'] = self.is_edit
context['is_hardcore'] = settings.DMOJ_2FA_HARDCORE
return context
@@ -106,9 +106,9 @@ def render_qr_code(cls, username, key):
return 'data:image/png;base64,' + base64.b64encode(buf.getvalue()).decode('ascii')
-class TOTPRefreshView(TOTPEnableView):
- title = gettext_lazy('Refresh Two-factor Authentication')
- is_refresh = True
+class TOTPEditView(TOTPEnableView):
+ title = gettext_lazy('Edit Two-factor Authentication')
+ is_edit = True
def check_skip(self):
return not self.profile.is_totp_enabled
diff --git a/locale/ar/LC_MESSAGES/django.po b/locale/ar/LC_MESSAGES/django.po
index db47f1667d..d29e91c1a7 100644
--- a/locale/ar/LC_MESSAGES/django.po
+++ b/locale/ar/LC_MESSAGES/django.po
@@ -3691,7 +3691,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5495,7 +5495,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -6006,7 +6006,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/ca/LC_MESSAGES/django.po b/locale/ca/LC_MESSAGES/django.po
index 09559a19fa..26754b6da4 100644
--- a/locale/ca/LC_MESSAGES/django.po
+++ b/locale/ca/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr "Activar Autenticació en Dos Passos"
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr "Entra el codi de 6 dígits generat per la teva app:"
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5508,7 +5508,7 @@ msgid "Total:"
msgstr "Total:"
#: templates/submission/list.html:350
-msgid "You were disconnected. Refresh to show latest updates."
+msgid "You were disconnected. Edit to show latest updates."
msgstr "Has estat desconnectat. Actualitza la pàgina per mostrar les últimes actualitzacions."
#: templates/submission/row.html:44
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "S'ha activat l'autenticació de dos passos:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po
index 0747eaa223..6af515b364 100644
--- a/locale/de/LC_MESSAGES/django.po
+++ b/locale/de/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/el/LC_MESSAGES/django.po b/locale/el/LC_MESSAGES/django.po
index be4d314149..e856725c6f 100644
--- a/locale/el/LC_MESSAGES/django.po
+++ b/locale/el/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr "Ενεργοποίηση Ταυτοποίησης Δύο Παραγόντων"
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr "Ανανέωση Ταυτοποίησης Δύο Παραγόντων"
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr "Εισάγετε τον 6-ψήφιο κωδικό που παράχθηκε από την εφαρμογή σας:"
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr "Ανανέωση Ταυτοποίησης Δύο Παραγόντων"
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "Η ταυτοποίηση δύο παραγόντων είναι ενεργοποιημένη:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr "Ανανέωση"
#: templates/user/edit-profile.html:363
diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po
index 4c97b8e3b2..0ced2bc44d 100644
--- a/locale/en/LC_MESSAGES/django.po
+++ b/locale/en/LC_MESSAGES/django.po
@@ -3668,7 +3668,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5487,7 +5487,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -6015,7 +6015,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/es/LC_MESSAGES/django.po b/locale/es/LC_MESSAGES/django.po
index 338344349d..b4f198a1f7 100644
--- a/locale/es/LC_MESSAGES/django.po
+++ b/locale/es/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr "Habilitar Autenticación en Dos Pasos"
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr "Entra el código de 6 dígitos generado por tu app:"
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "Autenticación en dos pasos habilitada:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po
index 513698b83b..997fd04239 100644
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/locale/fr/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr "Activer l'Authentification à Deux Facteurs"
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr "Réactiver l'Authentification à Deux Facteurs"
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr "Saisissez le code à 6 chiffres généré par votre application :"
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr "Réactiver l'Authentification à Deux Facteurs"
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "L'authentification à deux facteurs est activée :"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr "Réactiver"
#: templates/user/edit-profile.html:363
diff --git a/locale/hr/LC_MESSAGES/django.po b/locale/hr/LC_MESSAGES/django.po
index c9d906bbf2..7ac905d9e0 100644
--- a/locale/hr/LC_MESSAGES/django.po
+++ b/locale/hr/LC_MESSAGES/django.po
@@ -3616,7 +3616,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5381,7 +5381,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5889,7 +5889,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/hu/LC_MESSAGES/django.po b/locale/hu/LC_MESSAGES/django.po
index 545bda0c0e..7c40bfd89b 100644
--- a/locale/hu/LC_MESSAGES/django.po
+++ b/locale/hu/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/it/LC_MESSAGES/django.po b/locale/it/LC_MESSAGES/django.po
index 58b597c1ee..79e76ff4ca 100644
--- a/locale/it/LC_MESSAGES/django.po
+++ b/locale/it/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/ja/LC_MESSAGES/django.po b/locale/ja/LC_MESSAGES/django.po
index d2a3970724..3699f97a0a 100644
--- a/locale/ja/LC_MESSAGES/django.po
+++ b/locale/ja/LC_MESSAGES/django.po
@@ -3566,7 +3566,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5305,7 +5305,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5811,7 +5811,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/ko/LC_MESSAGES/django.po b/locale/ko/LC_MESSAGES/django.po
index c39f90da80..cd14b20743 100644
--- a/locale/ko/LC_MESSAGES/django.po
+++ b/locale/ko/LC_MESSAGES/django.po
@@ -3566,7 +3566,7 @@ msgid "Enable Two-factor Authentication"
msgstr "이중 인증 활성화"
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5305,7 +5305,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5811,7 +5811,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "2단계 인증이 활성화 되었습니다:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr "새로 고침"
#: templates/user/edit-profile.html:363
diff --git a/locale/lt/LC_MESSAGES/django.po b/locale/lt/LC_MESSAGES/django.po
index 078e4d32b3..15b8d2ee3e 100644
--- a/locale/lt/LC_MESSAGES/django.po
+++ b/locale/lt/LC_MESSAGES/django.po
@@ -3641,7 +3641,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5419,7 +5419,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5928,7 +5928,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/nl/LC_MESSAGES/django.po b/locale/nl/LC_MESSAGES/django.po
index 62e854aefd..0a4e764e6f 100644
--- a/locale/nl/LC_MESSAGES/django.po
+++ b/locale/nl/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/pl/LC_MESSAGES/django.po b/locale/pl/LC_MESSAGES/django.po
index 221ed2c347..7186ada9b1 100644
--- a/locale/pl/LC_MESSAGES/django.po
+++ b/locale/pl/LC_MESSAGES/django.po
@@ -3641,7 +3641,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5419,7 +5419,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5928,7 +5928,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/pt/LC_MESSAGES/django.po b/locale/pt/LC_MESSAGES/django.po
index 07cf6c310f..e961b97c7a 100644
--- a/locale/pt/LC_MESSAGES/django.po
+++ b/locale/pt/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/ro/LC_MESSAGES/django.po b/locale/ro/LC_MESSAGES/django.po
index 3bd0ffcb38..646bcee43e 100644
--- a/locale/ro/LC_MESSAGES/django.po
+++ b/locale/ro/LC_MESSAGES/django.po
@@ -3616,7 +3616,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5381,7 +5381,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5889,7 +5889,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "Autentificarea în doi pași este activată:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr "Reîmprospătează"
#: templates/user/edit-profile.html:363
diff --git a/locale/ru/LC_MESSAGES/django.po b/locale/ru/LC_MESSAGES/django.po
index 91ab1a7aaa..9db6d2842e 100644
--- a/locale/ru/LC_MESSAGES/django.po
+++ b/locale/ru/LC_MESSAGES/django.po
@@ -3641,7 +3641,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5419,7 +5419,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5928,7 +5928,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/sr_Latn/LC_MESSAGES/django.po b/locale/sr_Latn/LC_MESSAGES/django.po
index 0f052cf882..448f813260 100644
--- a/locale/sr_Latn/LC_MESSAGES/django.po
+++ b/locale/sr_Latn/LC_MESSAGES/django.po
@@ -3616,7 +3616,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5381,7 +5381,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5889,7 +5889,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "Dvofaktorna autentifikacija je uključena:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/tr/LC_MESSAGES/django.po b/locale/tr/LC_MESSAGES/django.po
index c7d4da30bb..469d2816e6 100644
--- a/locale/tr/LC_MESSAGES/django.po
+++ b/locale/tr/LC_MESSAGES/django.po
@@ -3591,7 +3591,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5343,7 +5343,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5850,7 +5850,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/locale/vi/LC_MESSAGES/django.po b/locale/vi/LC_MESSAGES/django.po
index 8e86aa6c22..b449ac5ecd 100644
--- a/locale/vi/LC_MESSAGES/django.po
+++ b/locale/vi/LC_MESSAGES/django.po
@@ -3566,7 +3566,7 @@ msgid "Enable Two-factor Authentication"
msgstr "Kích hoạt xác thực 2 yếu tố"
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr "Đặt lại xác thực 2 yếu tố"
#: judge/views/two_factor.py:117
@@ -5305,7 +5305,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr "Nhập mã 6 chữ số sinh ra bởi ứng dụng của bạn:"
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr "Đặt lại xác thực 2 yếu tố"
#: templates/registration/totp_enable.html:92
@@ -5811,7 +5811,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "Xác thực 2 yếu tố đã được kích hoạt:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr "Làm mới"
#: templates/user/edit-profile.html:363
diff --git a/locale/zh_Hans/LC_MESSAGES/django.po b/locale/zh_Hans/LC_MESSAGES/django.po
index 6ed83bf773..00d2d05e04 100644
--- a/locale/zh_Hans/LC_MESSAGES/django.po
+++ b/locale/zh_Hans/LC_MESSAGES/django.po
@@ -3566,7 +3566,7 @@ msgid "Enable Two-factor Authentication"
msgstr "启用双因素身份认证"
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr "刷新两步验证"
#: judge/views/two_factor.py:117
@@ -5305,7 +5305,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr "输入您应用生成的6位数代码:"
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr "刷新双因素认证"
#: templates/registration/totp_enable.html:92
@@ -5811,7 +5811,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr "已激活双元素认证:"
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr "刷新"
#: templates/user/edit-profile.html:363
diff --git a/locale/zh_Hant/LC_MESSAGES/django.po b/locale/zh_Hant/LC_MESSAGES/django.po
index 67f515c127..eb401f65f1 100644
--- a/locale/zh_Hant/LC_MESSAGES/django.po
+++ b/locale/zh_Hant/LC_MESSAGES/django.po
@@ -3566,7 +3566,7 @@ msgid "Enable Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:109
-msgid "Refresh Two-factor Authentication"
+msgid "Edit Two-factor Authentication"
msgstr ""
#: judge/views/two_factor.py:117
@@ -5305,7 +5305,7 @@ msgid "Enter the 6-digit code generated by your app:"
msgstr ""
#: templates/registration/totp_enable.html:90
-msgid "Refresh Two Factor Authentication"
+msgid "Edit Two Factor Authentication"
msgstr ""
#: templates/registration/totp_enable.html:92
@@ -5811,7 +5811,7 @@ msgid "Two-factor Authentication is enabled:"
msgstr ""
#: templates/user/edit-profile.html:360
-msgid "Refresh"
+msgid "Edit 2FA"
msgstr ""
#: templates/user/edit-profile.html:363
diff --git a/templates/registration/totp_enable.html b/templates/registration/totp_enable.html
index ee23d0b6a9..c905988eb6 100644
--- a/templates/registration/totp_enable.html
+++ b/templates/registration/totp_enable.html
@@ -86,8 +86,8 @@
{{ form.totp_or_scratch_code }}