Ejemplo n.º 1
0
 /**
  * Log the user out of the application.
  *
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function getLogout()
 {
     $this->registrar->logout();
     return ['message' => 'Logout successful'];
 }
 /**
  * Reset the given user's password.
  *
  * @return array
  */
 public function postReset()
 {
     $this->registrar->resetPassword();
     return ['message' => 'Password successfully reset'];
 }
Ejemplo n.º 3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return array
  */
 public function destroy($id)
 {
     $this->registrar->delete($id);
     return ['message' => 'Deleted'];
 }