]> git.mxchange.org Git - friendica.git/commitdiff
Rename function Authentication::authenticate_success to Authentication::success
authorJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 17 Oct 2018 16:45:32 +0000 (18:45 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 17 Oct 2018 16:45:32 +0000 (18:45 +0200)
include/api.php
mod/manage.php
mod/openid.php
src/Core/Authentication.php
src/Module/Login.php

index 51caa9019b1bb1737cd31cb26581a2f2371d7fc8..f853798912e0a053f7542ab9d11639728df35bde 100644 (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;
 
index d54b92a3a77a4c62d62b4c59ad5c427e0959dd8d..9e724c1e9bca52b44bd4ead0849f262637b24a74 100644 (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;
index a9930d0448c94ebee9aaa3955d815cd47c84b170..ca1129fd50cf513a3afa379eec609c629451d102 100644 (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
index 3e53a5ae9a98953b4f559e26cae2620572ac4e8d..2fbadcc92084f64acf71e7a7ce81312fa17293ea 100644 (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();
 
index 3c123b198c00337bd8ad11ea13fc8cf0b59ae08d..fc3b3fb49aa7f20118b08f6a54cd73011e568f84 100644 (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);
                        }
                }
        }