]> git.agnieray.net Git - galette.git/commitdiff
Type login id return
authorJohan Cwiklinski <johan@x-tnd.be>
Sun, 26 Sep 2021 08:08:29 +0000 (10:08 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Sun, 26 Sep 2021 16:30:58 +0000 (18:30 +0200)
galette/lib/Galette/Core/Authentication.php

index 5b518aa0240e8140a522b642c299d73944fb1c45..eb935d795b69620f9571cdb1c2e1cd4257729a2d 100644 (file)
@@ -295,7 +295,12 @@ abstract class Authentication
     {
         $forbidden = array('logged', 'admin', 'active', 'superadmin', 'staff', 'cron', 'uptodate');
         if (isset($this->$name) && !in_array($name, $forbidden)) {
-            return $this->$name;
+            switch ($name) {
+                case 'id':
+                    return (int)$this->$name;
+                default:
+                    return $this->$name;
+            }
         } else {
             return false;
         }