File modules/cms/action/user/UserSwitchAction.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\user; 3 use cms\action\Method; 4 use cms\action\UserAction; 5 use language\Messages; 6 use util\Request; 7 use util\Session; 8 9 10 class UserSwitchAction extends UserAction implements Method { 11 public function view() { 12 $this->setTemplateVar('username',$this->user->getName() ); 13 } 14 public function post() { 15 $this->addNoticeFor( $this->user,Messages::USER_LOGIN ); 16 17 // Und in der Sitzung speichern. 18 Request::setUser( $this->user ); 19 } 20 }
Download modules/cms/action/user/UserSwitchAction.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.