Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function editPasswordProcessAction()
- {
- $sessionNamespace = new Zend_Session_Namespace();
- $userid = $sessionNamespace->userId;
- $mapperUser = RCS_Resource::get('Db_Mapper_User');
- $user = $mapperUser->findByid($userid);
- $password = $this->_getParam('password' , "");
- $oldpass = $this->_getParam('oldpassword', "");
- if($oldpassword == $user->getPassword())
- {
- //echo $user->getPassword();
- $user->setPassword($password);
- }
- echo ($password);
- /*if (($password)== "")
- {
- $this->_helper->redirector->gotoSimple('edit-password','user', null, array("error" => "Password cannot be empty") );
- }*/
- $mapperUser->save($user);
- $this->_helper->redirector->gotoSimple('edit-password','user');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement