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
Edited README.md for grammer. It should read a little easier now. Also removed politically
charged references and replaced with something less polarizing (LoTR).
When trying to login a user with a special password for example: Password@123, the script would return an error saying the password was wrong.
I removed "or !ctype_alnum($pass)" from the login section which allows users to login and register with html chars in their passwords.