Creating a User Account via link or Registration Form

Need help? Post your questions here.

Moderator: moderators

Creating a User Account via link or Registration Form

Postby jonathanroz » Mon Jun 15, 2009 3:50 pm

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.
Last edited by jonathanroz on Sat Jun 20, 2009 12:00 am, edited 1 time in total.
jonathanroz
 
Posts: 172
Joined: Thu Dec 18, 2008 8:54 pm
Location: Frisco, TX USA

Postby sindre_mehus » Fri Jun 19, 2009 7:18 pm

Hi,

I would like to put this in the slightly wider context of user self registration. What if Subsonic could support several different ways of creating new users:

1. New users are manually created by admin. (Implemented)
2. New users are automatically created when using an external LDAP server for authentication. (Implemented)
3. Users must register login, password and email. Activation link sent automatically by email. Same as Facebook and many others. (Not implemented)
4. Same as 3, but admin must approve the registration request before activation email is sent. (Not implemented)

What you suggest, Jonathan, is a special case of 3, in which the user details is provided directly in the URL, rather than being typed into a form.

Of course 2, 3 and 4 will be optional and disabled by default.

What do people think about this? Is it something many will use? Is it worth the time it takes to implement it?
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby deriksen » Fri Jun 19, 2009 8:44 pm

I think quite a lot of people might use the functionality and find it useful, however I'm concerned about legality issues by making the software expand beyond a 'small private group' of people.

Could the developer(s) be held responsible for making available large file-sharing networks? Not sure about the specifics here. Anyone?
deriksen
 
Posts: 108
Joined: Mon Jan 19, 2009 7:31 am
Location: Kristiansand, Norway

Postby jonathanroz » Fri Jun 19, 2009 11:11 pm

Sindre,

You know I believe this would be very useful. I know there have been others that have requested to have a user registration form so if you could use that same form to pass user and password that would be great as well.

When it comes to questions of legality there are many applications that allow for file sharing. The developer cannot be held responsible for what people choose to do with it. There is already the ability to allow guest access and in reality a named account allows better tracking then using guest access.

In my instance I do not have downloading turned on for any users and I make users agree to legal terms about not posting illegally obtained music or trying to capture music that is being streamed from my site when signing up on the user forum. They have to agree to this before I approve their ID and setup their account.

Of course as you stated if someone doesn't want to use this new functino in Subsonic they can just choose to not utilize it.

Edit Modified the subject to fit the topic better
jonathanroz
 
Posts: 172
Joined: Thu Dec 18, 2008 8:54 pm
Location: Frisco, TX USA

Postby jonathanroz » Mon Jul 06, 2009 9:24 pm

Anyone else interested in what Sindre is suggesting?
jonathanroz
 
Posts: 172
Joined: Thu Dec 18, 2008 8:54 pm
Location: Frisco, TX USA

Postby nublet » Sat Jul 11, 2009 9:27 pm

yes very much so interested
nublet
 
Posts: 10
Joined: Sat Jul 11, 2009 8:48 pm

Yes please

Postby primary » Mon Jul 20, 2009 7:55 am

That is a very cool feature to implement.
So realy would like to see that.
primary
 
Posts: 17
Joined: Sat Jul 18, 2009 1:14 pm

Postby twent4 » Mon Aug 03, 2009 4:56 am

big +1 to Sindre's option 4
twent4
 
Posts: 17
Joined: Tue Jul 07, 2009 1:06 am

Postby jigsaw » Mon Aug 03, 2009 1:14 pm

twent4 wrote:big +1 to Sindre's option 4

agreed
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby brumisko » Mon Aug 10, 2009 8:19 pm

Hello,

It could be a very nice new feature !!!

Regards.

Brumisko
________
Last edited by brumisko on Tue Feb 01, 2011 9:45 am, edited 1 time in total.
brumisko
 
Posts: 9
Joined: Wed Nov 19, 2008 12:54 pm

Very interested!

Postby jjjedwards » Mon Aug 24, 2009 10:26 pm

I'd love to see a "controlled" self registration page.
jjjedwards
 
Posts: 3
Joined: Fri Aug 21, 2009 5:44 pm

Postby woohah » Tue Sep 22, 2009 1:31 pm

I would LOVE to have a user registration added to this awesome application. Any time frame as to when it will be implemented?
woohah
 
Posts: 10
Joined: Tue Sep 22, 2009 1:12 pm

Postby jjeffries » Wed Sep 23, 2009 11:03 pm

While my music is all on my internal network, I hate having to set up accounts for friends who come over, I would love to see a registration and approval (if set) process :)
jjeffries
 
Posts: 3
Joined: Wed Sep 23, 2009 11:01 pm

Postby kroken » Tue Nov 02, 2010 2:11 am

+1
kroken
 
Posts: 81
Joined: Sat Oct 16, 2010 6:28 am

Postby Aethies » Tue Nov 02, 2010 7:42 pm

kroken wrote:+1


+1 for me..
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests