X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fauth%2Fclass_CookieAuth.php;h=e14fd5df23344b23488149e7381afed152a54df1;hb=refs%2Fheads%2Fmaster;hp=6cd6559a7264868197174fad08420afe5c14f43e;hpb=b002c5909aa0f781505dde5414964b0f014cde01;p=core.git diff --git a/framework/main/classes/auth/class_CookieAuth.php b/framework/main/classes/auth/class_CookieAuth.php index 6cd6559a..e14fd5df 100644 --- a/framework/main/classes/auth/class_CookieAuth.php +++ b/framework/main/classes/auth/class_CookieAuth.php @@ -13,7 +13,7 @@ use Org\Mxchange\CoreFramework\Response\Responseable; * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2023 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -36,7 +36,7 @@ class CookieAuth extends BaseFrameworkSystem implements Authorizeable, Registera * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -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); }