This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework OTP using locks and new parameters to enable from admin or fro…
…m My Account, generate API key automatically and display QRCode for easy configuration.
- Loading branch information
Showing
7 changed files
with
262 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#otp_setup_screen { | ||
font-size: 12px; | ||
} | ||
#otp_setup_screen span.step { | ||
font-size: 14px; | ||
font-weight: 500; | ||
} | ||
#otp_setup_screen .codes { | ||
width: 200px; | ||
text-align: center; | ||
margin: 10px auto; | ||
} | ||
#otp_setup_screen .codes input { | ||
text-align: center; | ||
width: 200px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#otp_setup_screen{ | ||
font-size: 12px; | ||
span.step{ | ||
font-size: 14px; | ||
font-weight: 500; | ||
} | ||
.codes{ | ||
width: 200px; | ||
text-align: center; | ||
margin: 10px auto; | ||
input{ | ||
text-align: center; | ||
width: 200px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$mess = [ | ||
"1" => "Google Authenticator Configuration", | ||
"2" => "Your account is configured to use 2-factors authentication using Google Authenticator. ", | ||
"3" => "<span class='step'>Step 1</span> - If not already done, please install the Google Authenticator application on your mobile device. Application is available in the stores for iOS and Android.", | ||
"4" => "<span class='step'>Step 2</span> - Once the application is installed, you can directly scan the QRCode below or manually create an account and enter the API key.", | ||
"5" => "<span class='step'>Step 3</span> - Finally to verify that your GA account is properly configured, please enter the one-time-password provided.", | ||
"6" => "Your google key is already configured. Please contact your administrator to reset it.", | ||
"7" => "Cannot validate code, did you properly set up your Google Authenticator application?", | ||
"8" => "Something went wrong, your key should not be empty.", | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$mess = [ | ||
"1" => "Configuration de Google Authenticator", | ||
"2" => "Votre compte est configuré pour utiliser l'authentification à deux niveaux avec Google Authenticator.", | ||
"3" => "<span class='step'>Etape 1</span> - Installez l'application Google Authenticator sur votre mobile à partir des store iOS ou Android.", | ||
"4" => "<span class='step'>Etape 2</span> - Depuis l'application, scannez directement le code barre, ou créez une entrée manuellement avec la clé qui est affichée.", | ||
"5" => "<span class='step'>Etape 3</span> - Verifiez la configuration en utilisant le code à utilisation unique qui s'affiche sur l'application.", | ||
"6" => "Votre clé est déjà configurée, veuillez contacter l'administrateur pour la remettre à zéro.", | ||
"7" => "La vérification a échoué, avez vous correctement configuré l'application?", | ||
"8" => "Erreur interne, la clé ne devrait pas être vide.", | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters