can someone tell me what im doing wrong? I have developed custom module (in version 0.10.x) and now im upgrading to current stable (v. 1.3.2).
My module takes control over new user signup, so when i check user data i manually add the user to table mod_users (in 0.10.x) and user data in some other tables. Now, in v.1.3.2 i add user in table users. However, when i try to log in as new user, i get "Username and password combination not found." message (redirection to login page).
Here is my code - function for inserting new user:
// $result['some_field'] - data from signup page (table)
// $result['password'] - password, allready md5 encoded
$user = new PHPWS_User();
$user->_password = $result['password'];
$user->username = $result['username'];
$user->approved = TRUE;
$user->authorize = 1;
$user->email = $result['email'];
$rez = $user->save();
$id = $user->getId();
PS: this post is also on:
$user->_password must be md5($username.$password), i had md5($password)