RepositoryInterface

Known implementers

Wtf\Auth\Repository\LDAP , Wtf\Auth\Repository\User

Methods Summary
public
# getByLogin( string $login )
Get user by login.
public
# getLoginFields( )
Get login fields, eg: ['email', 'username'].
public
# login( string $login , string $password )
Check if provided login and password are correct and return matched user Otherwise, return null if no user found or password incorrect.
public
# forgot( string $login )
Generate special code for user who forgot password.
public
# reset( string $code , string $new_password )
Reset user password by code.