From a9f70574ff23a3e92283a31580857250dbfb4195 Mon Sep 17 00:00:00 2001 From: Leticia Portella Date: Mon, 4 Mar 2019 12:22:41 +0000 Subject: [PATCH] Change name from second_factor to two_factor --- nativeauthenticator/handlers.py | 6 +++--- nativeauthenticator/templates/native-login.html | 2 +- nativeauthenticator/templates/signup.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nativeauthenticator/handlers.py b/nativeauthenticator/handlers.py index f406236..65ed896 100644 --- a/nativeauthenticator/handlers.py +++ b/nativeauthenticator/handlers.py @@ -82,8 +82,8 @@ async def post(self): ask_email=self.authenticator.ask_email_on_signup, result_message=message, alert=alert, - second_factor_auth=self.authenticator.add_two_factor_authentication, - second_factor_auth_value=otp_secret, + two_factor_auth=self.authenticator.add_two_factor_authentication, + two_factor_auth_value=otp_secret, ) self.finish(html) @@ -141,7 +141,7 @@ def _render(self, login_error=None, username=None): login_error=login_error, custom_html=self.authenticator.custom_html, login_url=self.settings['login_url'], - second_factor_auth=self.authenticator.add_two_factor_authentication, + two_factor_auth=self.authenticator.add_two_factor_authentication, authenticator_login_url=url_concat( self.authenticator.login_url(self.hub.base_url), {'next': self.get_argument('next', '')}, diff --git a/nativeauthenticator/templates/native-login.html b/nativeauthenticator/templates/native-login.html index d7cafa8..11fba32 100644 --- a/nativeauthenticator/templates/native-login.html +++ b/nativeauthenticator/templates/native-login.html @@ -34,7 +34,7 @@ - {% if second_factor_auth %} + {% if two_factor_auth %} {% endif %} diff --git a/nativeauthenticator/templates/signup.html b/nativeauthenticator/templates/signup.html index 2a62b7f..d846efe 100644 --- a/nativeauthenticator/templates/signup.html +++ b/nativeauthenticator/templates/signup.html @@ -44,11 +44,11 @@ {% if alert %} {% endif %}