Hi All
1)Encrypted Password script
2) http://www.dynamicdrive.com/dynamicindex9/password.htm
3) My client would like the password to be case sensitive. Is there a way to make this happen? He wants the password to be lower case.
Thank you,
Daisy
Hi All
1)Encrypted Password script
2) http://www.dynamicdrive.com/dynamicindex9/password.htm
3) My client would like the password to be case sensitive. Is there a way to make this happen? He wants the password to be lower case.
Thank you,
Daisy
Last edited by jscheuer1; 07-16-2007 at 03:32 PM. Reason: fix link
Find those lines near the top of the script and simply remove the last bit:Code:password = document.password1.password2.value.toLowerCase() username = document.password1.username2.value.toLowerCase()
Code:password = document.password1.password2.value username = document.password1.username2.value
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
That will require a lower case username as well. Leave the username line alone if you want to allow for upper case letters in that field. If you remove toLowerCase(), it will result in that field needing to be entered in all lower case letters to pass. Mixed upper and lower case passwords and usernames that are case sensitive could be possible (I know you didn't ask for that), but the password generator (at least) would need to be changed to allow for that.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I wrote a superior replacement to this script, which is available here. Among other things, one of the features it adds is case sensitivity.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Ah, yes, I forgot to mention that I changed it for the username too. Easy to pick, though, for that.
I didn't think the generator would have trouble.
And, yeah, use Twey's script. It's better.
(This post probabl didn't help you...)
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Thank you all for your replies, they were all helpful.
Daisy
Bookmarks