Page 1 of 18
Subsonic registration engine
Posted:
Mon May 16, 2011 9:57 pm
by SparkyRih
I wrote a little external engine to register users in Subsonic...
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!
Posted:
Mon May 23, 2011 11:24 pm
by 3R3
Wow, looking forward to testing this out. I hope certain people notice this mod and think about it hard *wink* *wink*
Posted:
Tue May 24, 2011 8:49 am
by SparkyRih
Thank you
Tell me if you got it to work... I'm not sure if my instructions are clear enough....
Posted:
Sun May 29, 2011 9:23 pm
by jaquense
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
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
Posted:
Sun May 29, 2011 9:55 pm
by SparkyRih
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...
Posted:
Mon May 30, 2011 6:12 am
by jaquense
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
.
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
Posted:
Wed Jun 01, 2011 2:57 pm
by deejay2302
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?
Posted:
Wed Jun 01, 2011 4:36 pm
by jaquense
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.
Posted:
Wed Jun 01, 2011 9:31 pm
by SparkyRih
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...
Posted:
Thu Jun 02, 2011 1:37 pm
by bushman4
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
Posted:
Thu Jun 02, 2011 2:41 pm
by SparkyRih
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...
Posted:
Tue Jun 21, 2011 1:22 pm
by SparkyRih
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...
need help
Posted:
Thu Jun 30, 2011 12:45 pm
by Hellscream
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
Re: need help
Posted:
Thu Jun 30, 2011 2:17 pm
by SparkyRih
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?
Posted:
Thu Jun 30, 2011 9:24 pm
by Hellscream
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