On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




Feature request: non case sensitive check when lost password

UserPost

9:19 pm
4 Jun 2008


helenh

Member

UK

posts 9

 
1

Hiya,

one of my users applejack with registered email address on wordpress being upper case,

APPLE_JACK_1234@NOMAIL.COM

lost his password.

When he fills in the lost password thing with:

username=applejack, email=apple_jack_1234@nomail.com

he gets the message “username does not exist”.

but if he remembers that he originally entered his email in uppercase, and puts

username=applejack, email=APPLE_JACK_1234@NOMAIL.COM

then it works fine and he gets emailed his password.

Could you make it so that the check on the email address is not case sensitive in that situation?

9:57 pm
4 Jun 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4562

 
2

I am afraid you need to take this to the WordPress team because we just hook into their routines. but generally speaking, user ids and passwords are case sensitive

1:38 pm
5 Jun 2008


helenh

Member

UK

posts 9

 
3

Ah, its a wordpress thing, I see. Thanks.

Yes, I think most users are used to usernames and passwords being case sensitive, but not email addresses. Ah well.

1:52 pm
7 Jul 2008


helenh

Member

UK

posts 9

 
4

Hiya, just had another look at this, because another of my users got confused:

I think that the code involved might be sf-registration.php where it says:

 #  User not exists   
    if (!$user_email || $user_email != $_POST['email'])
        {
update_sfnotice('sfmessage', '1@'.__('This User Name does not exist!', “sforum”));
return false;
        }

I'm wondering if I change the != to something about case-sensitive, it might work? Of course, I'm a lot more likely to break it :-)

My users do understand that their username and password need to be case-sensitive, but they get confused because the “reset password” function seems to need their email address to also be entered in the right case, and if not, it tells them that their username doesn't exist.

3:23 pm
7 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4562

 
5

Well - while I do not advocate it, you could use

strtoupper

to convert both values to upper case for the comparison…

3:34 pm
7 Jul 2008


helenh

Member

UK

posts 9

 
6

Cheers, I might try it.

For now, I've just changed the message to say that “Either that username does not exist, or the email address doesn't match it (NB. both are case sensitive).”




Reply to Topic: Feature request: non case sensitive check when lost password

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 8 + 10        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

11 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 15

Topics: 1740

Posts: 11776

Members:

There are 798 members

There are 738 guests


Yellow Swordfish has made 4562 posts

Top Posters:

Mr Papa - 1226

-Radio- - 475

ovizii - 85

jfv - 80

angelic007 - 66

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.3 (Build 356)