From 29afbdfc932e53176d20be9297df429b1a1feef8 Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 24 Mar 2018 23:02:01 +0100 Subject: [PATCH] Implement method 'getRememberDirectiveSelector' in class 'Auth' --- src/Auth.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Auth.php b/src/Auth.php index 5f9d99e..a8c2115 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -1777,4 +1777,20 @@ final class Auth extends UserManager { ); } + /** + * Returns the selector of a potential locally existing remember directive + * + * @return string|null + */ + private function getRememberDirectiveSelector() { + if (isset($_COOKIE[$this->rememberCookieName])) { + $selectorAndToken = \explode(self::COOKIE_CONTENT_SEPARATOR, $_COOKIE[$this->rememberCookieName], 2); + + return $selectorAndToken[0]; + } + else { + return null; + } + } + }