Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function updatePassword(array $data, $validate = true)
 {
     $user = $this->auth->authenticate($data);
     $this->rules = ['new_password' => 'required|confirmed', 'new_password_confirmation' => 'required'];
     if ($validate) {
         $this->validate($data);
     }
     $updatedData = ['password' => $data['new_password']];
     $this->sentinel->update($user, $updatedData);
     return;
 }