File modules/cms/auth/Auth.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 4 namespace cms\auth; 5 6 /** 7 * Interface for Authentication 8 */ 9 interface Auth 10 { 11 const STATUS_SUCCESS = 1; 12 const STATUS_FAILED = 2; 13 const STATUS_PW_EXPIRED = 4; 14 const STATUS_TOKEN_NEEDED = 8; 15 const STATUS_ACCOUNT_LOCKED = 16; 16 17 const NS = __NAMESPACE__; 18 19 /** 20 * Checks the provided login data. 21 * 22 * @param string $username username 23 * @param string $password password 24 * @param string $token token 25 * @return int a bitmask with Auth::STATUS_* 26 */ 27 function login($username, $password, $token); 28 29 30 /** 31 * Ermittelt den Benutzernamen. 32 * Der Benutzername wird verwendet, um die Loginmaske vorauszufüllen. 33 * @return string the username or null 34 */ 35 function username(); 36 }
Download modules/cms/auth/Auth.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 03:08:55 +0100 Jan Dankert Replaced the calls to "Configuration::rawConfig()" with the OO style calls; Cleanup LoginAction. Tue, 29 Sep 2020 21:34:01 +0200 Jan Dankert Refactoring: Do not use global constants. Mon, 24 Feb 2020 22:56:44 +0100 Jan Dankert Fix: Need for Namespaces while accessing the Auth classes. 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.