User: add access to raw info array

This commit is contained in:
Benjamin Renard 2023-02-25 14:59:43 +01:00
parent 3d9decdafd
commit a343cfa9c7

View file

@ -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);