OTP : 2FA Authentication
Improve : tighten the security + cosmetic set double authentication : create, send link, usable with Google Authenticator and FreeOTP 1. OTP : prevent direct access without going throught the 2FA mechanism 2. Go back to the url where you were disconnected 3. Cosmetic
This commit is contained in:
parent
4bb0a46e6b
commit
4cee79c1f2
31 changed files with 1867 additions and 270 deletions
|
|
@ -49,6 +49,12 @@ $cn=Dossier::connect();
|
|||
global $g_user;
|
||||
$g_user=new Noalyss_User($cn);
|
||||
$g_user->check();
|
||||
/**
|
||||
* check if 2FA is completed
|
||||
*/
|
||||
if ( ! $g_user->is_double_identified()) {
|
||||
exit();
|
||||
}
|
||||
$g_user->check_dossier(dossier::id());
|
||||
set_language();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue