DefaultUserAuth.class.php (426B)
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 }