Class dektrium\user\helpers\Password
Inheritance | dektrium\user\helpers\Password |
---|
Password helper.
Public Methods
Method | Description | Defined 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
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 |
Wrapper for yii security helper method.
public static string hash ( $password ) | ||
$password |
Wrapper for yii security helper method.
public static bool validate ( $password, $hash ) | ||
$password | ||
$hash |