Fileref:login/sl welcome reg.php

From SLIS Second Life Wiki

Jump to: navigation, search

Image:folder.gif (parent)

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

  1. Require user login
  2. Display page header
  3. If user is a guest, then terminate with error message
  4. Construct a SloodleLSLHandler object
  5. Process basic request data
  6. Obtain additional parameters
  7. Attempt to locate avatar in database
  8. If avatar was not found, terminate with an error message
  9. If Login Security Token is invalid, then terminate with an error message
  10. TODO: implement confirmation screen for overwriting existing avatar details
  11. Attempt to link avatar to Moodle account
  12. If link failed then:
    1. Terminate with error message
  13. Else:
    1. Display welcome message
  14. If an XMLRPC channel was provided then:
    1. Contruct an XMLRPC success message
    2. Replace "\n" with "\\n" to workaround SL newline issue
    3. Send XMLRPC message
    4. Report success/failure
  15. Display page footer
  16. Terminate script


This page is part of the Sloodle documentation
SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home
Personal tools