Here is what I would love to be able to do.
1) End users clicks on a URL that we are adding to subsonic. Something like http://..../music/activate.view?ID=myid&PW=mypw
The last portion of the URL passes the ID and PW of the user to be created to the java code being added to subsonic.
2) The Java code "gets" the variable information from the URL and passes it to the code in subsonic to create a new user.
I understand there are other variables required for Subsonic to create a new user other then Username, Password and Confirm Password (the last 2 in this case would be the same value)
For the Streaming role I would like the Boolean to be = true and for the Upload role I would like the Boolean to be = true. I believe everything else defaults to False and that is fine with me.
When they click on the link the user gets a message saying "Your Music ID has been activated. Click here to close this screen -->"
Any takers? I think this would be fairly "simple" to do but I have spent many hours looking through the code as a non-java guy and I can't figure out how to do this myself. I understand the new JSP page would need to be added in subsonic-servlet file as well. I also understand I will need to set the security for the new page to allow anonymous connections but that isn't too tough.
Why do this
I honestly think this could be used by many people in similar situations. I run a music forum already on phpbb (although I think this code could be reused for other forums and apps as well).
Today I can have someone sign up for the Forum and send them their ID and PW. Of course if I also want to give them access to subsonic I have to manually create their ID and Password. This means that people either have to tell me what pw they used for the forum (I dont want that info) or they will have a pw that does not match the one for the forum.
What I can do though is add a link at the bottom of their forum activation email that says "To activate your music ID click here http://..../music/activate.view?ID=myid&PW=mypw".
This same code could be used for anybody who already runs a site that requires user registration. If they can modify the emails sent from their system they could add this link.