Subsonic registration engine

A little external engine to register users in Subsonic

Moderator: moderators

Re: Subsonic registration engine

Postby willieb » Mon Aug 20, 2012 5:06 pm

dr3van wrote:I had a problem with my isp not letting me run my own mail server, I had to set up sendmail to use a smtp server I have access to already and bounce everything through the ISPs smtp server.


Thanks for the reply, I work for the ISP lol. I manage the ISP network, my server is in the CO. I'll keep that in mind though as an alternative, I just haven't had time to work on it yet. Thanks again...
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby SparkyRih » Tue Aug 21, 2012 8:45 pm

Once again I'm sorry for not replying to you guys :S
But I see everything is fine now? except for the slow e-mail sending?

To be honest, I don't know what that could be, that's an issue on your server I guess... I'm sorry...
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

Re: Subsonic registration engine

Postby willieb » Fri Aug 24, 2012 5:37 am

Ok I finally had some time to work on getting the registration engine to work. All functions work, self registration, with or without approval, even password reset!

But... When users register they see an undefined variable php error, and when I approve users I see Undefined index errors as well.

Edit: I was able to turn off error reporting in php and the errors are gone. Thanks for the mod, it's awesome!
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby willieb » Sat Aug 25, 2012 3:31 am

I successfully got the registration engine working on 2 instances on the same server, for my 2 subsonic instances.

All I did was is copy and rename the registration folder that goes on my website and change all references from the old to new domain, and created another mysql db and changes references to it.

Also another pointer, to make it easier for users that receive an email I changes the email they receive to include this code for a link to automatically log them in. Then below it I included their normal login info and a link if they wanted to login manually.

http:// subsonicurl/login.view?user=-username-&password=-password-

Thanks again for the hard work on this mod, I love it!

Hopefully development will continue and those of us that got it working should help sparky with support.
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby SparkyRih » Sat Aug 25, 2012 10:38 pm

Thanks willieb, good to see another person getting it to work without any problems...
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

Re: Subsonic registration engine

Postby willieb » Sun Aug 26, 2012 2:17 am

You're welcome.

Now the only thing that bugs me is the registration side is not secure. I am running subsonic with SSL, port 443 with a valid purchased certificate. But the registration engine is running on Apache on port 80. I wonder if I can install the same cert into Apache and use the reg engine on another secure port?
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby SparkyRih » Sun Aug 26, 2012 12:07 pm

Yeah that would be possible...

Connection between Apache and Subsonic itself should be secured by your SSL connection, but the connection between your computer and the apache server is not secure at all, everything is currently done in plain text (encryption is done on the server side, I know it should be done on client side)...

I will make this part more secure in the future...

But giving the apache server an SSL certificate will secure the current cliente->apache connection a little bit better...
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

Re: Subsonic registration engine

Postby willieb » Mon Aug 27, 2012 7:51 pm

Ok I loaded the same ssl certificate I used for jetty, into Apache and changed the port from 80 to 446, and changed the referenced domain in login.jsp. Works great, no more "the page contains secure and nonsecure items" errors. Very happy with this mod...

Edit: Only thing I just noticed is that in Internet Explorer the capcha doesn't show up the first time you click register. You have to refresh the page and click register again. Any Ideas SparkyRih?
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby SparkyRih » Tue Aug 28, 2012 4:55 pm

I'm still an IE user, but I don't have that issue... it's just a simple PNG image that's loaded by the browser, nothing complex at all...
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

Re: Subsonic registration engine

Postby willieb » Tue Aug 28, 2012 5:03 pm

SparkyRih wrote:I'm still an IE user, but I don't have that issue... it's just a simple PNG image that's loaded by the browser, nothing complex at all...


Hmmm, strange. I tried it on another PC and same thing. Can you see if it happens for you on my server? https://www.bashlor.com. BTW I am using IE 8.0...

missingimage.jpg
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby SparkyRih » Fri Aug 31, 2012 2:12 pm

Using IE9, in normal mode, and compatibility mode the image loads fine the first time (and after that)... However, I do notice that it takes a couple seconds before the image shows up...
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

Re: Subsonic registration engine

Postby willieb » Fri Aug 31, 2012 2:52 pm

I'm not worried about it, I'll just tell folks to hit refresh lol.

Maybe this has already been talked about in this thread, but a cool feature would be a one-click email all for news letters, or communication to all users at once. For me it doesn't have to be fancy, it can be a simple text doc of email addresses that I can paste in Bcc. I'm doing this now via phpmyadmin, just takes a while.

Thanks again for a great mod!
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby willieb » Sun Sep 16, 2012 8:30 pm

Anyone with the registration engine mod attempted to upgrade to 4.7 yet? Does it work?

I am a little hesitant myself because I have 2 instances running (Windows installer), and with the reg engine mod, so I'm not sure yet how to upgrade.
willieb
 
Posts: 54
Joined: Fri Jul 27, 2012 3:03 pm

Re: Subsonic registration engine

Postby gurutech » Sun Sep 16, 2012 10:53 pm

I'm going to attempt this now. I have a slightly customized version of this, which I was running on my 4.6 installation, Fedora 17. I made a backup of everything so it shouldn't be too difficult to restore the registration engine. I'll post back with my results.

Edit: Everything works great! All I ended up having to do was to re-copy my old "login.jsp" file back to the Subsonic folder, which was modified for my 4.6 installation, and then I had to delete the "cache" folder for Subsonic, and reload my webpage. Since all of the other files/folders were not located under /var/subsonic, they weren't removed when I did the upgrade, so they were still there, and just copying that one file made everything all better!
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Subsonic registration engine

Postby gurutech » Mon Sep 17, 2012 4:20 pm

SparkyRih wrote:
ddweb wrote:Is it possible to make the registration connect with Facebook Login?
https://developers.facebook.com/docs/guides/web/#login


That's not really a bad idea to add as an optional feature... I will look into it some time...

Edit: Or even as standalone mod...



I know this was an old post, but I have some time, so I'm looking into it now. So far I have created an appID and will be looking into how to allow it to create a Subsonic ID if one doesn't exist, while using the existing one if it's already there.

Edit - ok, so I am very confused now! Trying to modify the existing registration engine to be able to pull data from the FB login page, but can't figure out how to "register" a new user and put that information into the current MySQL database that I'm using.

FB gives me an option to use a single "Login" button, and if they aren't registered, it will redirect them to a registration page, but I don't see how this information is placed into the MySQL db.

Here are the pages I am looking through:
https://developers.facebook.com/docs/guides/web/#login
http://developers.facebook.com/docs/plu ... istration/

Any ideas how to get this to work?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

PreviousNext

Return to Subsonic Registration Engine

Who is online

Users browsing this forum: No registered users and 2 guests