I’m wondering if its possible to programmatically save admin user details? email, password, first name, last name and password.
This is what I have so far:
$details = Mage::getSingleton('admin/session')->getUser();
$details->setEmail($postData['email'])
->setFirstName($postData['first_name'])
->setLastName($postData['last_name']);
if($postData['password']) {
if($postData['password'] === $postData['password_confirm']) {
$details->setPassword($postData['password']);
}
}
$details->save();
However, it’s not saving (it is saving other details). It is also not generating any errors.
Got it working: