mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
many code style cleanups
This commit is contained in:
parent
822a07485c
commit
63ae861257
|
@ -2,38 +2,52 @@
|
|||
/**
|
||||
* Implementation of user authentication
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010-2016 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright 2010-2016 Uwe Steinmann
|
||||
* @license GPL 2
|
||||
* @version @package_version@
|
||||
* @link https://www.seeddms.org
|
||||
*/
|
||||
|
||||
/**
|
||||
* Abstract class to authenticate user
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright Copyright (C) 2010-2016 Uwe Steinmann
|
||||
* @version Release: @package_version@
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @copyright 2010-2016 Uwe Steinmann
|
||||
* @license GPL 2
|
||||
* @version Release: @package_version@
|
||||
* @link https://www.seeddms.org
|
||||
*/
|
||||
abstract class SeedDMS_Authentication {
|
||||
abstract class SeedDMS_Authentication
|
||||
{
|
||||
/**
|
||||
* @var object $dms object of dms
|
||||
* DMS object
|
||||
*
|
||||
* @var SeedDMS_Core_DMS
|
||||
* @access protected
|
||||
*/
|
||||
private $dms;
|
||||
protected $dms;
|
||||
|
||||
/**
|
||||
* @var object $settings SeedDMS Settings
|
||||
* DMS settings
|
||||
*
|
||||
* @var Settings
|
||||
* @access protected
|
||||
*/
|
||||
private $settings;
|
||||
protected $settings;
|
||||
|
||||
function __construct($dms, $settings) { /* {{{ */
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param SeedDMS_Core_DMS $dms DMS object
|
||||
* @param Settings $settings DMS settings
|
||||
*/
|
||||
function __construct($dms, $settings) /* {{{ */
|
||||
{
|
||||
$this->dms = $dms;
|
||||
$this->settings = $settings;
|
||||
} /* }}} */
|
||||
|
@ -45,9 +59,11 @@ abstract class SeedDMS_Authentication {
|
|||
* the user object otherwise false must be returned. If authentication fails
|
||||
* the number of failed logins should be incremented and account disabled.
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @return object|boolean user object if authentication was successful otherwise false
|
||||
* @param string $username name of user to authenticate
|
||||
* @param string $password password of user to authenticate
|
||||
*
|
||||
* @return object|false user object if authentication was successful
|
||||
* otherwise false
|
||||
*/
|
||||
abstract function authenticate($username, $password);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user