Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getActivate($userId, $activationCode) {
- $user = User::find($userId);
- if (!$user) {
- return $this->getMessage("Неверная ссылка на активацию аккаунта.");
- }
- if ($user->activate($activationCode)) {
- Auth::login($user);
- return $this->getMessage("Аккаунт активирован", "/");
- }
- return $this->getMessage("Неверная ссылка на активацию аккаунта, либо учетная запись уже активирована.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement