Custom Codeigniter Ion Auth Password Strength Validation

Even if Ion auth has enough validation rules for form inputs, sometimes you have to check if the password is strength enough.  One of the fastest way to achieve this functionality is the following check.   $password = $this->input->post(‘password’); if (!preg_match(‘([a-zA-Z].*[0-9]|[0-9].*[a-zA-Z])’, $password) ){ $errorMesasge = ‘Password is too weak.’; exit(json_encode(array(‘status’ => false, ‘message’ => $errorMesasge)));… Continue reading Custom Codeigniter Ion Auth Password Strength Validation

Ion Auth Password Strength Validation

Among options to validate the strength of password is also found this one. You can change the default settings for Ion Auth password strength validation from config.php. Digits Required For Password $config[‘min_digits_for_password’] = 1;     Lowercase Letters Required For Password $config[‘min_lowercase_chars_for_password’] = 1;     Uppercase Letters Required For Password $config[‘min_uppercase_chars_for_password’] = 1;  … Continue reading Ion Auth Password Strength Validation

Codeigniter Ion Auth Password length

Ion auth is an authentication library for Codeigniter framework, easy to use, change or add custom functions to it. To set minimum or maximum password length in codeigniter you have to find the config.php file. These lines do the trick.   $config[‘min_password_length’] = 7; $config[‘max_password_length’] = 20;