File modules/cms/action/login/LoginUserinfoAction.class.php
Last commit: Fri Apr 15 14:51:22 2022 +0200 dankert Refactoring: User,Config and Database info is now stored in the Request, because so there is no session required for clients which are using Basic Authorization.
1 <?php 2 namespace cms\action\login; 3 use cms\action\LoginAction; 4 use cms\action\Method; 5 use util\Session; 6 7 8 class LoginUserinfoAction extends LoginAction implements Method { 9 10 public function view() { 11 $user = $this->currentUser; 12 13 $info = array('username' => $user->name, 14 'fullname' => $user->fullname, 15 'mail' => $user->mail, 16 'telephone' => $user->tel, 17 'style' => $user->style, 18 'admin' => $user->isAdmin, 19 'groups' => implode(',',$user->getGroups()), 20 'description'=> $user->desc 21 ); 22 23 $this->setTemplateVar('userinfo',$info); 24 } 25 26 27 public function post() { 28 } 29 }
Downloadmodules/cms/action/login/LoginUserinfoAction.class.php
History Fri, 15 Apr 2022 14:51:22 +0200 dankert Refactoring: User,Config and Database info is now stored in the Request, because so there is no session required for clients which are using Basic Authorization. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.