Changeset 1329
- Timestamp:
- 12/03/07 20:24:08 (1 year ago)
- Files:
-
- devel/mod/users/lib/userdetails_actions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/users/lib/userdetails_actions.php
r1316 r1329 49 49 $u->name = $name; 50 50 $u->ident = $id; 51 52 // Add a callback 53 $u = plugin_hook('userdetails', 'republish', $u); 54 if (empty($u)) { 55 trigger_error("The callback didn't receive a return value.", E_USER_ERROR); 56 } 57 51 58 update_record('users',$u); 59 52 60 if ($USER->ident == $page_owner) { 53 61 $USER->name = $name; … … 66 74 $u->email = $email; 67 75 $u->ident = $id; 76 77 // Add a callback 78 $u = plugin_hook('userdetails', 'republish', $u); 79 80 if (empty($u)) { 81 trigger_error("The callback didn't receive a return value.", E_USER_ERROR); 82 } 83 68 84 update_record('users',$u); 85 69 86 if ($USER->ident == $page_owner) { 70 87 $USER->email = $email; … … 129 146 $messages[] = __gettext("Your password was updated."); 130 147 $u = new StdClass; 131 $u->password = md5($password1);148 $u->password = $password1; 132 149 $u->ident = $page_owner; 150 151 // Add a callback 152 $u = plugin_hook('userdetails', 'republish', $u); 153 154 if (empty($u)) { 155 trigger_error("The callback didn't receive a return value.", E_USER_ERROR); 156 } 157 158 // md5 the password 159 $u->password = md5($u->password); 160 133 161 update_record('users',$u); 134 162 }
