Overview

Namespaces

  • Core
    • Auth
    • Exceptions
    • Helpers
    • Providers
  • Kernel
    • Dispatch
    • Providers
  • None
  • Vendor
    • ExampleVendor

Classes

  • AuthenticateController
  • PasswordModel
  • Overview
  • Namespace
  • Class
  • Download

Class PasswordModel

Contains the default logic to retrieve a user from the database.

Core\ParentModel
Extended by Core\Auth\PasswordModel

Direct known subclasses

LoginModel
Namespace: Core\Auth
Package: Core
Located at app/Kernel/Auth/PasswordModel.php
Methods summary
public static Core\Auth\PasswordModel
# singleton( )

Returns the class instance, creating it if it did not exist.

Returns the class instance, creating it if it did not exist.

Returns

Core\Auth\PasswordModel

Overrides

Core\ParentModel::singleton()
public mixed
# getUser( string $username, string $password )

Gets an user from the database and updates last_login and attempts

Gets an user from the database and updates last_login and attempts

Parameters

$username
The name of the user
$password
The unhashed password of the user

Returns

mixed
$user on success, FALSE on error
Methods inherited from Core\ParentModel
getRow(), query(), queryClass(), queryIndexed(), updateRow()
Properties inherited from Core\ParentModel
$config, $db, $id
Ribosome API documentation generated by ApiGen