Fileref:login/sl welcome reg.php
From SLIS Second Life Wiki
This Interface Script is used to finish the process of authenticating a user's avatar registration. If they are not already logged-in to Moodle, then it will required that they login. This will confirm their ownership of both the avatar and the Moodle account.
If an avatar is already registered to the Moodle account, then a confirmation page will be requested prior to updating the database. (NOTE: this is not yet implemented!)
[edit] Dependencies
Sloodle files:
[edit] Parameters
The following parameters are always required:
- sloodleuuid = the UUID of the avatar being registered
- sloodlelst = the login security token identifying the registration
The following parameter is optional:
- sloodlechannel = UUID of an XMLRPC channel used to send confirmation of registration back into Second Life
The following parameter will be used if the user has had to confirm that they want to overwrite existing avatar details:
- sloodleconfirm = if 'true' then overwrite of avatar details is confirmed
[edit] Algorithm
- Require user login
- Display page header
- If user is a guest, then terminate with error message
- Construct a SloodleLSLHandler object
- Process basic request data
- Obtain additional parameters
- Attempt to locate avatar in database
- If avatar was not found, terminate with an error message
- If Login Security Token is invalid, then terminate with an error message
- TODO: implement confirmation screen for overwriting existing avatar details
- Attempt to link avatar to Moodle account
- If link failed then:
- Terminate with error message
- Else:
- Display welcome message
- If an XMLRPC channel was provided then:
- Contruct an XMLRPC success message
- Replace "\n" with "\\n" to workaround SL newline issue
- Send XMLRPC message
- Report success/failure
- Display page footer
- Terminate script
| This page is part of the Sloodle documentation | |||
|---|---|---|---|
| SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home | |||
