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:
@@ -174,8 +174,16 @@ if ($sl_ct > 0)
|
||||
# Valid user
|
||||
$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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user