Zubrag.com
May 20, 2012, 11:04:06 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Request: Passwords case insensitive  (Read 1906 times)
sabotage
Newbie
*
Posts: 4


« on: June 18, 2007, 09:42:34 pm »

First of all, what a great script! It's exactly what I was looking for.

I'm using the script to allow access to a family site, so the user is required to enter the first name of a family member to allow access. Would you care to add an option to disable cass-sensitive passwords?

Again, awesome script - thanks!!

-Sab

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: June 20, 2007, 11:37:23 am »

Hi. Glad you find it useful.

Replace $pass = $_POST['access_password'];
with $pass = strtolower($_POST['access_password']);

Replace $lp = (USE_USERNAME ? $key : '') .'%'.$val;
with $lp = (USE_USERNAME ? $key : '') .'%'.strtolower($val);
Logged
sabotage
Newbie
*
Posts: 4


« Reply #2 on: June 22, 2007, 10:04:50 am »

Works great! Thanks so much!!

-sab
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC