Subsonic registration engine

A little external engine to register users in Subsonic

Moderator: moderators

Subsonic registration engine

Postby SparkyRih » Mon May 16, 2011 9:57 pm

I wrote a little external engine to register users in Subsonic...

Image

For features, requirements, future plans, instructions and the downloads (or to support me):
http://www.schattorie.com/subsonic-registration-engine/

If you have any questions, requests or bug reports please create a new topic in our Subsonic Registration Engine forum!
Last edited by SparkyRih on Tue Oct 09, 2012 6:00 am, edited 9 times in total.
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby 3R3 » Mon May 23, 2011 11:24 pm

Wow, looking forward to testing this out. I hope certain people notice this mod and think about it hard *wink* *wink*
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby SparkyRih » Tue May 24, 2011 8:49 am

Thank you ;)
Tell me if you got it to work... I'm not sure if my instructions are clear enough....
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby jaquense » Sun May 29, 2011 9:23 pm

haha, I was just here looking for a work around for the whole Email missing from the API issue, for a registration page I was making myself :P

Looks good! I just wrote my own in python, Tho i would imagine php being a much more elegant/web-based approach for this sort of thing.

mySQL seems like an easy way to handle the email concern, tho it would be nice not to have two independent db's for the same info, but a las we are limited by the API I suppose
jaquense
 
Posts: 47
Joined: Tue Dec 28, 2010 7:06 pm

Postby SparkyRih » Sun May 29, 2011 9:55 pm

I wrote this feature just for myself and a friend of me, we needed MySQL, because we wanted to use the same credentials for other services on our servers... But for the public version the MySQL is basically not required... if the developer could add e-mail support to the API I can rewrite it to drop the MySQL requirement... It would make implementation of my script a lot easier for less experienced users...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby jaquense » Mon May 30, 2011 6:12 am

Agreed. I took your lead and tried the mySQL route, which was nice and easy since I already have it all set up for tons of other services. But yeah, its a lot of additional stuff for your average public user. Hell you do only need it to send a user a recovery/reset link. I contemplated just going a different route until I saw your solution. Much appreciated :D.

Here's to Sindre adding the email get/set to the API. Frankly I'm wondering what he has in mind for the email to begin with, since it showed up last version with little documentation and no apparent use. hoping for robust user contact features and native password resets in the future
jaquense
 
Posts: 47
Joined: Tue Dec 28, 2010 7:06 pm

Postby deejay2302 » Wed Jun 01, 2011 2:57 pm

Hmm good idea, but i need only the function "Forgot Password" to re-send Passwords to registered users. Can i use it without MySQL Database etc. ?
And what i must do?
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Postby jaquense » Wed Jun 01, 2011 4:36 pm

Not to step on Sparky's toes...

You can basically think about this mod as really simple frontend, that only does 2 things: create a user and recover a password. Since you send users a reset/temp password via email you NEED their email addresses to do that

The reason for the mySQL is to store those user's email addresses. And while the newest SS does have a spot and db field for email addresses in the original webapp. We have no ability to set or change email addresses from the outside because the API (the interface app developers use to communicate with SS) doesn't include that option yet.

SO as a workaround mySQL is used to store the email addresses to a user outside of SS.

Theoretically you don't need something as robust as mysql, you could write it to just store it in a local text file. and read and right to that. But Sparky (and myself) used mysql since we already had it set up for other things.
jaquense
 
Posts: 47
Joined: Tue Dec 28, 2010 7:06 pm

Postby SparkyRih » Wed Jun 01, 2011 9:31 pm

jaquense wrote:Not to step on Sparky's toes...

You can basically think about this mod as really simple frontend, that only does 2 things: create a user and recover a password. Since you send users a reset/temp password via email you NEED their email addresses to do that

The reason for the mySQL is to store those user's email addresses. And while the newest SS does have a spot and db field for email addresses in the original webapp. We have no ability to set or change email addresses from the outside because the API (the interface app developers use to communicate with SS) doesn't include that option yet.

SO as a workaround mySQL is used to store the email addresses to a user outside of SS.

Theoretically you don't need something as robust as mysql, you could write it to just store it in a local text file. and read and right to that. But Sparky (and myself) used mysql since we already had it set up for other things.


Lol, just before I read your last paragraph I thought about a flat file DB :)

I guess I can add that as default DB feature (untill the e-mail is added to the API)... It would make it a little easier...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby bushman4 » Thu Jun 02, 2011 1:37 pm

Why can't you just use the existing Subsonic DB? Sindre has to be using a publicly available database API...

Maybe I'll take a poke at the source code and see what I can see...

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 874
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby SparkyRih » Thu Jun 02, 2011 2:41 pm

bushman4 wrote:Why can't you just use the existing Subsonic DB? Sindre has to be using a publicly available database API...

Maybe I'll take a poke at the source code and see what I can see...

Glenn


Why would I take the hard way if there's an easy way?
Just adding the e-mail to the get/set user API is enough, in the meantime I'll write a flat file DB extension...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby SparkyRih » Tue Jun 21, 2011 1:22 pm

I see e-mail is added to the API in the new beta version, I will try to modify my script today/tomorrow...

Edit: So I started rewrting my script... but I have some issues....

For security reasons I'm using the encrypted password in the MySQL database as hash for the password reset mail... The hash has to correspond to the encrypted passowrd and userid in the DB, if so, the password can be resetted...

Issue: Subsonic's getUser API call doesn't return an encrypted password...
Using the username or e-mail addres, or even both to reset a password would be a huge security hole, even if I encrypt them...

So the only solution would be, to update the rest API, adding an encrypted password...

Edit 2: I did update the script to work with version 4.5 beta1 since the email parameter is required...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

need help

Postby Hellscream » Thu Jun 30, 2011 12:45 pm

I have sub 4.4 and i try reg engine problem is:
user get registered in mysql DB but not on subsonic and im not sure how to set up mailconf.php can u help me or just post short instruction. THX in advance big support for this project
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: need help

Postby SparkyRih » Thu Jun 30, 2011 2:17 pm

Hellscream wrote:I have sub 4.4 and i try reg engine problem is:
user get registered in mysql DB but not on subsonic and im not sure how to set up mailconf.php can u help me or just post short instruction. THX in advance big support for this project


1. Did you download versoin 1.0 (1.1 won't work for 4.4 or lower)
2. Did you configure the config.php properly?
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Postby Hellscream » Thu Jun 30, 2011 9:24 pm

Yep i try with ver 1.0 on 4.4 and i also try today 1.1 4.5beta still same prob (no acc created on subsonic) maybe i need to configure php but i dont know how. btw thx 4 reply keep with good work
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Next

Return to Subsonic Registration Engine

Who is online

Users browsing this forum: No registered users and 2 guests