added `login_with_name` config item
renamed `aauth_error_login_failed` to `aauth_error_login_failed_email` in lang file
added `aauth_error_login_failed_name` in lang file
changed in login function `$email` to `$identifier`
Info and Errors (and other bug fixes)
----
Added flashdata boolean to error() and info() allowing the option for errors/messages to only remain for current page.
Added clear_errors() and clear_infos() which removes all errors and infos from Aauth storage as well as flashdata storage
Loaded flashdata into errors and infos on construct in order to fully utilize flashdata (as a result, keep_errors() and keep_infos() now work properly)
Added boolean return value to login_fast()
Remove redundant indexes from Aauth_v2.sql
Removed bool return value from get_errors_array() and get_infos_array(). As "array" is in the method name, should only return array. Change should remain backwards compatible as empty array will still evaluate to "false".
Fix bug in which "is_allowed" returns true if user is logged in and has access to perm_id=1 and perm is non-existant.
Modified list_user_var_keys() to return an array so that it can be looped through
Fixed duplicate message when sending password reset email, line 424
Modified lang-file constants to include prefix. This will help avoid collisions. Also added a few missing items to the lang-file
Updated SQL file to be a bit more efficient.
Modified keep_infos() and keep_errors() to include non-flash data values on optional boolean parameter.
Fixed bug where as adding an error or info to flash data would result
in all errors/infos being added to the flash data. Two temporary
arrays were used to store current flash data and are used to update
the flash data correctly as errors/info are added to flash data.
Duplicate Keys have been removed. Group and Permission (and other) fields
have been changed to varchar. Definition column added to aauth_groups table.
Boolean fields changed to tinyint(1).
Modified lang-file constants to include prefix. This will help avoid collisions.
Also added a few missing items to the lang-file.
Modified list_user_var_keys() to return an array so that it can be looped through.
Fixed duplicate message when sending password reset email, line 424.
modified: application/language/english/aauth_lang.php
modified: application/libraries/Aauth.php
Fixed an issue with is_allowed that would cause it to return true
if the permission name passed in did not exist and the user had access
to permission ID 1. Changed get_perm_id() to return NULL instead of FALSE.
This fixed the above issue.
After further analysis of how error and info messages were being used
and how they were likely to be implemented, I changed the default to
NOT use CI Flashdata by default.
Removed duplicate keys that were causing MySQL to throw warnings. These
keys were exactly the same as the primary key and were superfluous.
Also edited the grammer in the sql/readme.txt
modified: sql/Aauth_v2.sql
modified: sql/readme.txt