WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


Login Redirects
failed login redir not working

Version:
printPrint


Login Redirects
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 06/03/05 - 09:36 AM:
quote post
#1
I'm trying to redirect failed logins but, when I enter a nonsense login name and password, I get a message stating "your account is still awaiting validation, you cannot login yet." It then takes me to the successful user login redirect.

Two things here: obviously I'd like to get the redirect working properly. The other issue is the message that appears about the account awaiting validation. I'd much rather have something saying "no match for that username/password combination," where can I change these messages?
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 06/05/05 - 03:27 PM:
quote post
#2
Just to be clear, I am using the redirects page in the admin panel. I've tried tweaking all the usergroup settings (I don't validate any members) but, I still get the awaiting validation message. Maybe I need to mess with the database field for validation....

(on second thought, that won't do anything. the usernames & passwords I've been entering don't exist in the database and, I'm still getting that message)

Edited by knotworking on 06/05/05 - 03:35 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 06/09/05 - 08:08 AM:
quote post
#3
The messages are in the language area of your admin panel, but it sounds like it's using the wrong message. Using 2.15? Will check.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 06/09/05 - 10:18 AM:
quote post
#4
In 2.15, typing in random username/pass gives "The password you supplied does not match the one for that username."
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 06/09/05 - 05:26 PM:
quote post
#5
AHhhh, I've figured it out. The passwordencoder help you gave me back in this post http://www.webmastersite.net/forums/thread/5061 was to use this code:

$password = $userpassword;

But, since my password field was user_password, I changed it to:

$password = $user_password;

Worked for logging in but, this was causing the problem with redirects. I removed the undercarriage(sp?) and, it's all working just fine.

Thanks for the feedback.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 06/10/05 - 10:36 AM:
quote post
#6
It shouldn't have worked for logging in, it's hard to see how it would. $userpassword is not a field name, it comes from the form element being submitted.
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 06/12/05 - 02:42 PM:
quote post
#7
I agree, I got kinda worried about that. I made several attempts to login using just a username and/or an incorrect password and it would not allow me access. Still, very strange. I had been logging in using that encoder up until the point I realized the solution to the redirect issue. How it could be finding and using the correct password field when it was wrong in the encoder file is a stumper.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.