user->login (method)

Return to Knowledgebase

Purpose

Logs in a user

Location

users/classes/User.php

See Also:

user->loginEmail (method)

Parameters

This function does not take any arguments

Example

$user->login('admin','password');

Further Documentation:

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