throw new UnauthorizedException("This API requires login");
}
- Authentication::authenticate_success($record);
+ Authentication::success($record);
$_SESSION["allow_api"] = true;
unset($_SESSION['sysmsg_info']);
}
- Authentication::authenticate_success($r[0], true, true);
+ Authentication::success($r[0], true, true);
if ($limited_id) {
$_SESSION['submanage'] = $original_id;
unset($_SESSION['openid']);
- Authentication::authenticate_success($r[0],true,true);
+ Authentication::success($r[0],true,true);
// just in case there was no return url set
// and we fell through
* @param type $interactive
* @param type $login_refresh
*/
- public static function authenticate_success($user_record, $login_initial = false, $interactive = false, $login_refresh = false)
+ public static function success($user_record, $login_initial = false, $interactive = false, $login_refresh = false)
{
$a = self::getApp();
// if we haven't failed up this point, log them in.
$_SESSION['remember'] = $remember;
$_SESSION['last_login_date'] = DateTimeFormat::utcNow();
- Authentication::authenticate_success($record, true, true);
+ Authentication::success($record, true, true);
if (x($_SESSION, 'return_url')) {
$return_url = $_SESSION['return_url'];
// Do the authentification if not done by now
if (!isset($_SESSION) || !isset($_SESSION['authenticated'])) {
- Authentication::authenticate_success($user);
+ Authentication::success($user);
if (Config::get('system', 'paranoia')) {
$_SESSION['addr'] = $data->ip;
$_SESSION['last_login_date'] = DateTimeFormat::utcNow();
$login_refresh = true;
}
- Authentication::authenticate_success($user, false, false, $login_refresh);
+ Authentication::success($user, false, false, $login_refresh);
}
}
}