original_string: protected function resetPasswordFinish(array $data)
      {
          $data['user']['password'] = $data['password'];
          unset($data['user']['data']['reset_password']);
  
          $this->user->update($data['user']['user_id'], $data['user']);
          $this->mail->set('user_changed_password', array($data['user']));
  
          return $this->getResultResetPasswordFinish();
      }
code: protected function resetPasswordFinish(array $data)
      {
          $data['user']['password'] = $data['password'];
          unset($data['user']['data']['reset_password']);
  
          $this->user->update($data['user']['user_id'], $data['user']);
          $this->mail->set('user_changed_password', array($data['user']));
  
          return $this->getResultResetPasswordFinish();
      }
code_tokens: protected function resetPasswordFinish ( array $ data ) { $ data [ 'user' ] [ 'password' ] = $ data [ 'password' ] ; unset ( $ data [ 'user' ] [ 'data' ] [ 'reset_password' ] ) ; $ this -> user -> update ( $ data [ 'user' ] [ 'user_id' ] , $ data [ 'user' ] ) ; $ this -> mail -> set ( 'user_changed_password' , array ( $ data [ 'user' ] ) ) ; return $ this -> getResultResetPasswordFinish ( ) ; }
docstring: Finish the password reset operation
  @param array $data
  @return array
docstring_tokens: Finish the password reset operation