Login Inop - Re
6 posts by 2 authors in: Forums > CMS Builder
Last Post: September 17, 2009 (RSS)
By rentittoday - September 15, 2009 - edited: September 15, 2009
I hope all is well. I am having issues with my login. It keeps redirecting me.
If you go to www.rentittoday.com and click the Orange Login Button, Enter Your Password It Takes You Into the system. The problem is when you click Add Listings it logs me out then redirects me to http://www.rentittoday.com/cmsadmin/admin.php Then if i enter a my user name and password It lets me in and then i can add listings and do what ever i want.
Any ideas?
Thanks,
Jason Glass
Re: [rentittoday] Login Inop - Re
By Chris - September 15, 2009 - edited: September 17, 2009
It seems like you're using two separate login systems?
One quick fix, if you're sure people have the same login info in both systems would be to change your CMS Builder login link to include the user's username and password. For example:
EDIT: example was wrong, please see below
I hope this helps! :)
Chris
Re: [chris] Login Inop - Re
We have a custom user account page that displays a list of the Current Users listings as well as their account details (which is why we have them log in).
On that page there is also a button to add listings, that links to the admin.php in CMS. Before we upgraded to the newest version it worked fine.
I did try your code but for some reason it reads the // in the redirect part of the code as a comment.
http://www.rentittoday.com/cmsadmin/admin.php?action=loginSubmit&username=<?php echo urlencode($username);>&password=<?php echo urlencode($password);>&redirectUrl=http://www.rentittoday.com/cmsadmin/admin.php
Re: [rentittoday] Login Inop - Re
By Chris - September 17, 2009
Oops, I should have URL encoded that! Also, my PHP tags were missing closing ?s! What was I thinking?!
http://www.rentittoday.com/cmsadmin/admin.php?action=loginSubmit&username=<?php
echo urlencode($username); ?>&password=<?php echo urlencode($password);
?>&redirectUrl=http%3A%2F%2Fwww.rentittoday.com%2Fcmsadmin%2Fadmin.php
I'm not sure why this would have stopped working when you upgraded. It could be that we changed how our sessions work. Can you post the PHP source code for your custom login?
Chris
Re: [chris] Login Inop - Re
In the Username box is displays this:
Notice: Undefined variable: username in C:\Domains\rentittoday.com\wwwroot\my_account.php on line 421
I have attached the sign in page.
The sign in page then takes you to the my_account page (which I have also attached).
On the my_account page there is a link to "Add Listings". This used to give the user access to their listings. Log them into CMS with them never really knowing. It was seemless. Now it prompts them to enter their username and password.
Re: [rentittoday] Login Inop - Re
By Chris - September 17, 2009
Can you private message me your FTP login info? I'll see if I can get this fixed quickly for you. :)
Chris