Class dektrium\user\helpers\Password

Inheritancedektrium\user\helpers\Password

Password helper.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
generate() Generates user-friendly random password containing at least one lower case letter, one uppercase letter and one digit. The remaining characters in the password are chosen at random from those three sets. dektrium\user\helpers\Password
hash() Wrapper for yii security helper method. dektrium\user\helpers\Password
validate() Wrapper for yii security helper method. dektrium\user\helpers\Password

Method Details

generate() public static method

Generates user-friendly random password containing at least one lower case letter, one uppercase letter and one digit. The remaining characters in the password are chosen at random from those three sets.

See also https://gist.github.com/tylerhall/521810.

public static string generate ( $length )
$length
hash() public static method

Wrapper for yii security helper method.

public static string hash ( $password )
$password
validate() public static method

Wrapper for yii security helper method.

public static bool validate ( $password, $hash )
$password
$hash