Description

All user authentication types should implement the abstract functions of this class.

  • author: Marcel Werk
  • copyright: 2001-2009 WoltLab GmbH
  • abstract:
  • license: GNU

	

Direct descendents

Class Description
UserAuthDefault Default implementation of the user authentication.

Variable Summary

Type Name
static UserAuth $instance

Method Summary

Return Name
static UserAuth getInstance()
User loginAutomatically([boolean $persistent = false], [string $userClassname = 'UserSession'])
User loginManually(string $username, string $password, [string $userClassname = 'UserSession'])
void storeAccessData(User $user, string $username, string $password)
boolean supportsPersistentLogins()

Variables

$instance

protected static UserAuth $instance = null

active instance

Methods

getInstance

public static UserAuth getInstance()

Returns an instance of the enabled user auth class.


loginAutomatically

public User loginAutomatically([boolean $persistent = false], [string $userClassname = 'UserSession'])

Does an automatic user login.

  • abstract:

Parameters:

  • $persistent - true = persistent login
  • $userClassname - class name of user class

Redefined in descendants as: UserAuthDefault::loginAutomatically()


loginManually

public User loginManually(string $username, string $password, [string $userClassname = 'UserSession'])

Does an manual user login.

  • abstract:

Parameters:

  • $username
  • $password
  • $userClassname - class name of user class

Redefined in descendants as: UserAuthDefault::loginManually()


storeAccessData

public void storeAccessData(User $user, string $username, string $password)

Stores the user access data for a persistent login.

  • abstract:

Parameters:

  • $user
  • $username
  • $password

Redefined in descendants as: UserAuthDefault::storeAccessData()


supportsPersistentLogins

public boolean supportsPersistentLogins()

Returns true, if this auth type supports persistent logins.

  • abstract:

Redefined in descendants as: UserAuthDefault::supportsPersistentLogins()