]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/auth/class_CookieAuth.php
Continued:
[core.git] / framework / main / classes / auth / class_CookieAuth.php
index 659c97680438709fb7dfd3733c1eb8aa31e1a204..c9bd58d2c8daa1cf474b43a6d5a32f2e12d25c35 100644 (file)
@@ -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);
        }