Locker\Request::getDecodedAuth PHP Méthode

getDecodedAuth() private méthode

Gets decoded authentication details.
private getDecodedAuth ( String $auth ) : AssocArray
$auth String
Résultat AssocArray Basic auth details.
    private function getDecodedAuth($auth)
    {
        $decoded = base64_decode($auth);
        $auth_parts = explode(':', $decoded);
        return [self::authUser => $auth_parts[0], self::authPass => $auth_parts[1]];
    }