SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Auth

Provides user authentication functions for the admin

Functions

NameVisibilityDescription
checkAlgorithmpublic (static)Checks if a given password algorithm is available
defaultAlgorithmpublic (static)Return the algorithm for new accounts.
doPasswordCheckpublic (static)Check a password hash against an entered password
hashPasswordpublic (static)Return a hashed password, password algorithm, and salt, for inserting into the database

public checkAlgorithm

bool Auth::checkAlgorithm ( int $algorithm );

Checks if a given password algorithm is available

public defaultAlgorithm

int Auth::defaultAlgorithm ( );

Return the algorithm for new accounts.
Existing accounts will be re-crypted into this algorithm upon next login.

public doPasswordCheck

bool Auth::doPasswordCheck ( string $known_hash , int $algorithm , string $salt , string $user_string );

Check a password hash against an entered password

public hashPassword

array Auth::hashPassword ( string $password [, int $algorithm ] );

Return a hashed password, password algorithm, and salt, for inserting into the database