1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +02:00

Removed old comments from e107_class.php. userlogin class cleanup. New user login test added.

This commit is contained in:
Cameron
2021-01-16 08:43:51 -08:00
parent a6406ea0d3
commit 8f4b3429dc
5 changed files with 141 additions and 130 deletions

View File

@@ -341,6 +341,9 @@ class UserHandler
/**
* Detect Password Hash Algorythm type
* @param string $hash - Password hash to analyse
@@ -492,6 +495,22 @@ class UserHandler
return false;
}
public function newUserExpired($userjoined)
{
$new_user_period = (int) e107::getPref('user_new_period', 0);
if(empty($new_user_period))
{
return true;
}
$userjoined = (int) $userjoined;
return (time() > ($userjoined + ( $new_user_period)*86400));
}
/**