/** * Just register the user with a role of guest */ public function onLogin() { $this->user->username = User::genRandomUsername(User::GUEST); $this->user->role = User::GUEST; return $this->register(); }