Instantiate the auth object
public __construct ( Pop\Auth\Adapter\AdapterInterface $adapter, integer $encryption, array $options = [] ) : |
||
$adapter | Pop\Auth\Adapter\AdapterInterface | |
$encryption | integer | |
$options | array | |
return |
/** * Constructor * * Instantiate the auth object * * @param int $encryption * @param string $salt * @return \Phire\Auth\Auth */ public function __construct($encryption = 0, $salt = null) { $adapter = new A\Adapter\Table('Phire\\Table\\Users', 'username', 'password', 'role_id'); parent::__construct($adapter, $encryption); }
/** * Constructor * * Instantiate the auth object * * @param int $encryption * @param string $salt */ public function __construct($encryption = Authentication\Auth::ENCRYPT_MD5, $salt = null) { $adapter = new Authentication\Adapter\Table('LaceCart\\Backend\\Admin', $encryption); $adapter->setUsernameField('email')->setPasswordField('password'); parent::__construct($adapter, $encryption); }