From a343cfa9c71a36f57ce5bd2b6213047801717598 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 25 Feb 2023 14:59:43 +0100 Subject: [PATCH] User: add access to raw info array --- src/Auth/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Auth/User.php b/src/Auth/User.php index 882e69e..97f16f3 100644 --- a/src/Auth/User.php +++ b/src/Auth/User.php @@ -47,6 +47,8 @@ class User { return $this -> username; case 'backend': return $this -> backend; + case 'info': + return $this -> info; default: if (array_key_exists($key, $this -> info)) return $this -> info[$key]; @@ -65,6 +67,7 @@ class User { switch ($key) { case 'username': case 'backend': + case 'info': return true; default: return array_key_exists($key, $this -> info);