public function loginAndRemember(UserInterface $user) { return $this->login($user, true); }
public function postRegister(CredentialsRequest $request) { if ($user = $this->sentinel->registerAndActivate($this->getRequestData($request))) { $this->sentinel->loginAndRemember($user); $this->setResponseData($user->toArray()); } else { $this->setErrorData("Can't create user"); } return $this->responseJson(); }