diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-25 17:53:44 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-25 17:53:44 +0200 |
commit | 0efeef6b6693d62675ec8a45e73c71f69e0a0362 (patch) | |
tree | 4b86b3bd62217fc4c60e2827e30a45209ce82605 /app/class/Controllerconnect.php | |
parent | bd16dc7c6fc630a6b59ca3b041dde146ab50c72b (diff) | |
parent | 385b3f4adf86606e03941171c136d8f2eb2b35c2 (diff) | |
download | wcms-0efeef6b6693d62675ec8a45e73c71f69e0a0362.tar.gz wcms-0efeef6b6693d62675ec8a45e73c71f69e0a0362.zip |
Merge branch master with implement-exception
Diffstat (limited to 'app/class/Controllerconnect.php')
-rw-r--r-- | app/class/Controllerconnect.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/class/Controllerconnect.php b/app/class/Controllerconnect.php index 24b0c3c..9dc788b 100644 --- a/app/class/Controllerconnect.php +++ b/app/class/Controllerconnect.php @@ -83,7 +83,7 @@ class Controllerconnect extends Controller /** * Create a token stored in the database and then a cookie * - * @return string|bool Token in cas of success, otherwise, false. + * @return string|false Token in cas of success, otherwise, false. */ public function createauthtoken() { @@ -95,9 +95,8 @@ class Controllerconnect extends Controller if ($cookiecreation) { return $tokenid; } - } else { - return false; } + return false; } /** @@ -112,7 +111,7 @@ class Controllerconnect extends Controller { $hash = secrethash($token); $cookie = $token . ':' . $hash; - return setcookie('authtoken', $cookie, time() + $conservation * 24 * 3600, null, null, false, true); + return setcookie('authtoken', $cookie, time() + $conservation * 24 * 3600, "", "", false, true); } /** |