Rename function Authentication::authenticate_success to Authentication::success

This commit is contained in:
Jonny Tischbein 2018-10-17 18:45:32 +02:00
parent 45e5a7f59f
commit ce2b1f5715
5 changed files with 7 additions and 7 deletions

View File

@ -242,7 +242,7 @@ function api_login(App $a)
throw new UnauthorizedException("This API requires login");
}
Authentication::authenticate_success($record);
Authentication::success($record);
$_SESSION["allow_api"] = true;

View File

@ -110,7 +110,7 @@ function manage_post(App $a) {
unset($_SESSION['sysmsg_info']);
}
Authentication::authenticate_success($r[0], true, true);
Authentication::success($r[0], true, true);
if ($limited_id) {
$_SESSION['submanage'] = $original_id;

View File

@ -51,7 +51,7 @@ function openid_content(App $a) {
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

View File

@ -65,7 +65,7 @@ class Authentication extends BaseObject
* @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();

View File

@ -154,7 +154,7 @@ class Login extends BaseModule
// 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'];
@ -202,7 +202,7 @@ class Login extends BaseModule
// 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;
@ -255,7 +255,7 @@ class Login extends BaseModule
$_SESSION['last_login_date'] = DateTimeFormat::utcNow();
$login_refresh = true;
}
Authentication::authenticate_success($user, false, false, $login_refresh);
Authentication::success($user, false, false, $login_refresh);
}
}
}