src/mako/gatekeeper/adapters/Adapter.php
public function activateUser(string $token)
	{
		$user = $this->userRepository->getByActionToken($token);

		if($user === false)
		{
			return false;
		}

		$user->activate();

		$user->generateActionToken();

		$user->save();

		return $user;
	}
public function activateUser(string $token)
	{
		$user = $this->userRepository->getByActionToken($token);

		if($user === false)
		{
			return false;
		}

		$user->activate();

		$user->generateActionToken();

		$user->save();

		return $user;
	}
public function activateUser ( string $ token ) { $ user = $ this -> userRepository -> getByActionToken ( $ token ) ; if ( $ user === false ) { return false ; } $ user -> activate ( ) ; $ user -> generateActionToken ( ) ; $ user -> save ( ) ; return $ user ; }
Activates a user based on the provided auth token.

@param  string                                   $token Auth token
@return \mako\gatekeeper\entities\user\User|bool
Activates a user based on the provided auth token .