BitAuth User Guide Version 1.0


Form Validation

BitAuth comes with an extended Form Validation library with methods to help validate input for users and groups.

Rule Parameter Description Example
bitauth_unique_username Yes Returns FALSE if the username is not unique. Pass a user_id as an optional parameter to exclude that user from the check. bitauth_unique_username
bitauth_unique_username[2]
bitauth_unique_group Yes Returns FALSE if the group name is not unique. Pass a group_id as an optional parameter to exclude that group from the check. bitauth_unique_group
bitauth_unique_group[2]
bitauth_valid_password No Returns FALSE if the password does not meet the complexity requirements you have specified in the configuration. This rule also checks the pwd_min_length and pwd_max_length you have specified, so separate use of those rules is unnecessary.