X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fauth%2Fclass_CookieAuth.php;h=54942bd57e17fc4d44b0add002253d89c44e88d6;hb=b580ca852dc945d23290a6f7fb2c77e7c52e0d4b;hp=0652bb173a19bcc896a2210f5f1baf9a6c3ba5d7;hpb=cad1ab5ecb2935a6ebf678555860c3bd96b525b0;p=core.git diff --git a/framework/main/classes/auth/class_CookieAuth.php b/framework/main/classes/auth/class_CookieAuth.php index 0652bb17..54942bd5 100644 --- a/framework/main/classes/auth/class_CookieAuth.php +++ b/framework/main/classes/auth/class_CookieAuth.php @@ -13,11 +13,7 @@ use Org\Mxchange\CoreFramework\Response\Responseable; * * @author Roland Haeder * @version 0.0.0 -<<<<<<< HEAD:framework/main/classes/auth/class_CookieAuth.php - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team -======= - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team ->>>>>>> Some updates::inc/main/classes/auth/class_CookieAuth.php + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2021 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -40,7 +36,7 @@ class CookieAuth extends BaseFrameworkSystem implements Authorizeable, Registera * * @return void */ - protected function __construct () { + private function __construct () { // Call parent constructor parent::__construct(__CLASS__); } @@ -65,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); } @@ -75,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); }