File modules/cms/auth/CookieAuth.class.php
Last commit: Sun Nov 29 21:46:57 2020 +0100 Jan Dankert Auth modules should only use the Auth::STATUS_* constants as return value.
1 <?php 2 3 namespace cms\auth; 4 5 use cms\action\Action; 6 use cms\auth\Auth; 7 use util\Cookie; 8 9 /** 10 * Using the username from a cookie. 11 * 12 * @author dankert 13 */ 14 class CookieAuth implements Auth 15 { 16 public function username() 17 { 18 return Cookie::get( Action::COOKIE_USERNAME,null ); 19 } 20 21 22 /** 23 * Ueberpruefen des Kennwortes ist über Ident nicht möglich. 24 */ 25 public function login($user, $password, $token) 26 { 27 return Auth::STATUS_FAILED; 28 } 29 30 } 31
Downloadmodules/cms/auth/CookieAuth.class.php
History Sun, 29 Nov 2020 21:46:57 +0100 Jan Dankert Auth modules should only use the Auth::STATUS_* constants as return value. Thu, 19 Nov 2020 00:45:44 +0100 Jan Dankert Security fix: We must update the login token on every login; Administrators are able to see the login tokens of users. Wed, 18 Nov 2020 20:42:57 +0100 Jan Dankert Getting/Setting cookies with constants, this is more safe. Mon, 16 Nov 2020 13:21:57 +0100 Jan Dankert Code cleanup: Externalize calling the auth modules. Sun, 1 Nov 2020 03:08:55 +0100 Jan Dankert Replaced the calls to "Configuration::rawConfig()" with the OO style calls; Cleanup LoginAction. Sun, 23 Feb 2020 04:49:34 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 2. Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.