\apex\app\interfacesAuthInterface

Authentication Interface

Handles authenticating sessions, checking whether or not a user is authenticated, invalid sessions, 2FA, and more.

Summary

Methods
Constants
check_login()
login()
auto_login()
logout()
check_password()
authenticate_2fa_email()
authenticate_2fa_sms()
get_encpass()
recaptcha()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

check_login()

check_login(boolean  $require_login = false) 

Check if the current session is authenticated.

Parameters

boolean $require_login

Whether or not an authenticated session is required for this request.

login()

login() 

Login a user. Uses the POSTed variables for username / password.

auto_login()

auto_login(integer  $userid) 

Auto-login a user.

Parameters

integer $userid

The ID# of the user to login.

logout()

logout() 

Logout, and close authenticated session.

check_password()

check_password(string  $username, string  $password) 

Check username / password only.

Parameters

string $username

The username.

string $password

The password.

authenticate_2fa_email()

authenticate_2fa_email(integer  $is_login) 

Conduct 2FA via e-mail.

Parameters

integer $is_login

A (1/0) whether or not this is due to the user logging in.

authenticate_2fa_sms()

authenticate_2fa_sms() 

Conduct 2FA via SMS.

get_encpass()

get_encpass() 

Get the encryption password from auth session.

recaptcha()

recaptcha() 

Check reCaptcha answer and ensure it's a human.