Browse Source

Merge pull request #14 from peazz/patch-1

!ctype_alnum($pass) is removed so now special chars (@ ! ?) can be used for password
develop v2.0.1
Emre Akay 11 years ago
parent
commit
77a532fc2a
  1. 12
      application/libraries/Aauth.php

12
application/libraries/Aauth.php

@ -100,8 +100,16 @@ class Aauth {
$this->CI->input->set_cookie($cookie);
// verification
if( !valid_email($email) or !ctype_alnum($pass) or strlen($pass) < 5 or
/*
*
* User Verification
*
* Removed or !ctype_alnum($pass) from the IF statement
* It was causing issues with special characters in passwords
* and returning false even if the password matches.
*/
if( !valid_email($email) or strlen($pass) < 5 or
strlen($pass) > $this->config_vars['max'] )
{
$this->error($this->config_vars['wrong']);

Loading…
Cancel
Save