[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/authentication/src/Strategies/ -> DatabaseStrategy.php (summary)

Part of the Joomla Framework Authentication Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 127 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DatabaseStrategy:: (3 methods):
  __construct()
  authenticate()
  getHashedPassword()


Class: DatabaseStrategy  - X-Ref

Joomla Framework Database Strategy Authentication class

__construct(Input $input, DatabaseInterface $database, array $options = [], ?HandlerInterface $passwordHandler = null)   X-Ref
Strategy Constructor

param: Input              $input            The input object from which to retrieve the request credentials.
param: DatabaseInterface  $database         DatabaseDriver for retrieving user credentials.
param: array              $options          Optional options array for configuring the credential storage connection.
param: HandlerInterface   $passwordHandler  The password handler.

authenticate()   X-Ref
Attempt to authenticate the username and password pair.

return: string|boolean  A string containing a username if authentication is successful, false otherwise.

getHashedPassword($username)   X-Ref
Retrieve the hashed password for the specified user.

param: string  $username  Username to lookup.
return: string|boolean  Hashed password on success or boolean false on failure.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer