| Wednesday 16 June 2010 11:38:52 am 
                                                                 Yep, there is. You'll find a few helpful methods in eZUser: To create a password hash: eZUser::createHash( $login, $password, eZUser::site(), eZUser::hashType() ) ); Note that the hash type in use should also be stored in the eZUser attribute: $this->setAttribute( "password_hash", eZUser::createHash( $login, $password, eZUser::site(), eZUser::hashType() ) );
$this->setAttribute( "password_hash_type", eZUser::hashType() ); You can also use the eZUser::validatePassword method in order to make sure the password you'll be using matches the INI settings. And just in case, there is also an eZUser::createPassword() method if you wanna generate a few. Bertrand DunogiereZ Systems Engineering, Lyon
 http://twitter.com/bdunogier
 http://gplus.to/BertrandDunogier
 |