X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=framework%2Fmain%2Fclasses%2Fauth%2Fclass_CookieAuth.php;h=c9bd58d2c8daa1cf474b43a6d5a32f2e12d25c35;hb=ef7a7e55c59c9e887e6bb09c8c02b8126309f716;hp=f1c38e4098e7fa8b47814c0a40b786082ea1dea1;hpb=146c8b3c929a1b0ab17d6605e5ae949ac44899c1;p=core.git diff --git a/framework/main/classes/auth/class_CookieAuth.php b/framework/main/classes/auth/class_CookieAuth.php index f1c38e40..c9bd58d2 100644 --- a/framework/main/classes/auth/class_CookieAuth.php +++ b/framework/main/classes/auth/class_CookieAuth.php @@ -1,19 +1,19 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -61,7 +61,7 @@ class CookieAuth extends BaseFrameworkSystem implements Authorizeable, Registera * @param $userName The username from request we shall set * @return void */ - public function setUserAuth ($userName) { + public function setUserAuth (string $userName) { FrameworkBootstrap::getResponseInstance()->addCookie('username', $userName); } @@ -71,7 +71,7 @@ class CookieAuth extends BaseFrameworkSystem implements Authorizeable, Registera * @param $passHash The hashed password from request we shall set * @return void */ - public function setPasswordAuth ($passHash) { + public function setPasswordAuth (string $passHash) { FrameworkBootstrap::getResponseInstance()->addCookie('u_hash', $passHash); }