File modules/cms/auth/DefaultUserAuth.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\base\Configuration; 6 7 /** 8 * Gets the default user. 9 * 10 * @author dankert 11 */ 12 class DefaultUserAuth implements Auth 13 { 14 public function username() 15 { 16 return Configuration::subset( ['security','default'])->get('username'); 17 } 18 19 20 /** 21 * Ueberpruefen des Kennwortes ist über Ident nicht möglich. 22 */ 23 public function login($user, $password, $token) 24 { 25 return Auth::STATUS_FAILED; 26 } 27 28 }
Download modules/cms/auth/DefaultUserAuth.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. Sun, 1 Nov 2020 22:26:12 +0100 Jan Dankert Fix: Class name was wrong. Sun, 1 Nov 2020 03:08:55 +0100 Jan Dankert Replaced the calls to "Configuration::rawConfig()" with the OO style calls; Cleanup LoginAction.