Skip to content

Commit

Permalink
added min password length
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Jun 7, 2015
1 parent 239ef68 commit 341bab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion application/config/aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
// remember time
$config['aauth']['remember'] = ' +3 days';

// pasword maximum char long (min is 4)
// pasword minimum char long
$config['aauth']['min'] = 8;
// pasword maximum char long
$config['aauth']['max'] = 24;

// non alphanumeric characters that are allowed in a name
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ public function create_user($email, $pass, $name='') {
$this->error($this->CI->lang->line('aauth_error_email_invalid'));
$valid = FALSE;
}
if ( strlen($pass) < 5 OR strlen($pass) > $this->config_vars['max'] ){
if ( strlen($pass) < $this->config_vars['min'] OR strlen($pass) > $this->config_vars['max'] ){
$this->error($this->CI->lang->line('aauth_error_password_invalid'));
$valid = FALSE;
}
Expand Down

0 comments on commit 341bab5

Please sign in to comment.