django-mfa3

multi factor authentication for django
git clone https://git.ce9e.org/django-mfa3.git

commit
ed114c75e37f5a89830b0fc150f907b586b8e839
parent
3e66d6000bb8602522fdceb082b9453a23b85910
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-06-18 17:39
style: use f-strings

Diffstat

M mfa/views.py 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/mfa/views.py b/mfa/views.py

@@ -66,7 +66,7 @@ class MFACreateView(LoginRequiredMixin, MFAFormView):
   66    66     form_class = MFACreateForm
   67    67 
   68    68     def get_template_names(self):
   69    -1         return 'mfa/create_%s.html' % self.method.name
   -1    69         return f'mfa/create_{self.method.name}.html'
   70    70 
   71    71     def get_success_url(self):
   72    72         return reverse('mfa:list')
@@ -92,7 +92,7 @@ class MFAAuthView(StrongholdPublicMixin, MFAFormView):
   92    92     form_class = MFAAuthForm
   93    93 
   94    94     def get_template_names(self):
   95    -1         return 'mfa/auth_%s.html' % self.method.name
   -1    95         return f'mfa/auth_{self.method.name}.html'
   96    96 
   97    97     def get_success_url(self):
   98    98         success_url = self.request.session.pop('mfa_success_url')