Added Two-Factor Authentication system, Added mobile_number to User Modify screen

Added BUTTON field type to custom list fields

git-svn-id: svn://192.168.202.10@3373 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2021-03-12 19:09:12 +00:00
parent 9415dd9459
commit 0d48cfbeb0
41 changed files with 1293 additions and 185 deletions
+10 -2
View File
@@ -114,8 +114,16 @@ if ($sl_ct > 0)
$auth=0;
$auth_message = user_authorization($PHP_AUTH_USER,$PHP_AUTH_PW,'',1,0);
if ($auth_message == 'GOOD')
{$auth=1;}
if ( ($auth_message == 'GOOD') or ($auth_message == '2FA') )
{
$auth=1;
if ($auth_message == '2FA')
{
header ("Content-type: text/html; charset=utf-8");
echo _QXZ("Your session is expired").". <a href=\"admin.php\">"._QXZ("Click here to log in")."</a>.\n";
exit;
}
}
if ($auth < 1)
{