user->loginEmail (method)

Return to Knowledgebase

Purpose

Logs in a user with an email address instead of username

Location

users/classes/User.php

See Also:

user->login (method)

Parameters

This function does not take any arguments

Example

$user->login('admin@aol.com','password');

Further Documentation:

Note that the User class must be instantiated and then you can call user->login

$user = new User();
$user->login('admin@aol.com','password');