public function convertToRegistered($sendNotification = true)
    {
        // Already a registered user
        if (!$this->is_guest) {
            return;
        }

        if ($sendNotification) {
            $this->generatePassword();
        }

        $this->is_guest = false;
        $this->save();

        if ($sendNotification) {
            $this->sendInvitation();
        }
    }
public function convertToRegistered($sendNotification = true)
    {
        // Already a registered user
        if (!$this->is_guest) {
            return;
        }

        if ($sendNotification) {
            $this->generatePassword();
        }

        $this->is_guest = false;
        $this->save();

        if ($sendNotification) {
            $this->sendInvitation();
        }
    }
public function convertToRegistered ( $ sendNotification = true ) { // Already a registered user if ( ! $ this -> is_guest ) { return ; } if ( $ sendNotification ) { $ this -> generatePassword ( ) ; } $ this -> is_guest = false ; $ this -> save ( ) ; if ( $ sendNotification ) { $ this -> sendInvitation ( ) ; } }
Converts a guest user to a registered one and sends an invitation notification.
@return void
Converts a guest user to a registered one and sends an invitation notification .