[Phplib-users] convert passwords submitted to phplib to upper case
Brought to you by:
nhruby,
richardarcher
From: Robert V. O. <van...@un...> - 2002-07-16 15:21:03
|
Hello, I would like to convert passwords submitted to phplib to upper case. I tried adding the 'strtoupper' function to our auth class, right before it queries the dbase: $password = strtoupper($password); $this->db->query(sprintf("select user_id, perms ". " from %s ". " where username = '%s' ". " and password = '%s'", $this->database_table, addslashes($username), addslashes($password))); This doesn't work. It would be nice to do the addslashes () and the strtoupper () all at the same time. Can the two functions be glued together so they both operate on the $password at the same time? If not is there a better way or place to do the conversion? Bob Van UDI IS |