Login Inop - Re

6 posts by 2 authors in: Forums > CMS Builder
Last Post: September 17, 2009   (RSS)

Re: [rentittoday] Login Inop - Re

By Chris - September 15, 2009 - edited: September 17, 2009

Hi Jason,

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! :)
All the best,
Chris

Re: [chris] Login Inop - Re

I do not believe that it is two different systems. But it may very well be.
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
Jason Glass

Re: [rentittoday] Login Inop - Re

By Chris - September 17, 2009

Hi Jason,

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?
All the best,
Chris

Re: [chris] Login Inop - Re

Excellent. But it still gives me an when trying to log in.
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.
Jason Glass
Attachments:

sign_in.php 5K

my_account.php 21K

Re: [rentittoday] Login Inop - Re

By Chris - September 17, 2009

Hi Jason,

Can you private message me your FTP login info? I'll see if I can get this fixed quickly for you. :)
All the best,
Chris