forked from ptejada/uFlex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
changelog
146 lines (124 loc) · 6.53 KB
/
changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
uFlex Changelog
v0.97 11/03/2013
- Minor improvements to how cookies are set and logged, the host is retrieved from SERVER['SERVER_NAME']
- New modern demo using jQuery and Bootstrap
- When a login request fails form_error is set to the 'password' field
v0.96 7/26/2013
- Added the manageUser() factory. The factory returns a clone of the uFlex instance which allows simple user managing capabilities such as updating a user field, resetting its password and so on.
v0.95 6/17/2013
- Fixed login bug
- Fixed typos and enhance inline PHPDoc blocks
v0.94 5/15/2013
- Added a magic clone method to clean the cloned object
- Deprecated the updater script.
- Deprecated the static hash and legacy password hash
v0.93 2/24/2013
- Updated private methods to protected
v0.91 2/17/2013
- Overhaul of inline documentation
- Made the ->session method public
- Enhanced the ->logout method
v0.88 7/23/2012
- Fixed an autologin cookie bug where user could not be logged out in PHP 5.4.x
v0.87 7/22/2012
- Patched some security bugs
v0.86 6/15/2012
- Constant ::debug deprecated, not really needed
- Implemented a stronger and more complex user authentication algorithm. It is fully backwards compatible, users will be migrated to the new algorithm as they login.
- Ported the class to use PDO instead of the outdated mysql_* lib.
- The class now handles its own database link so a connection is stablished only when needed.
- Addded the $db variable to hold the database credentials.
- Added the ability to delay/stop object construction so that options could be configured outside the class file before it starts.
- new ->start() method allows you to start a delayed object construction so that you can customize any class option without having to edit the class file itselft.
- MIT lincense upgrade, is more flexible so it should not be a problem with existing applications
v0.75 11/26/2011
- Revamped Demo, new look and best PHP practices
- New ->login() method to initiate a login request anytime
- Wrapped session_start() into smart conditions, eliminating all warnings and logging session_start() status
- Replace all PHP short tags project wide
- some internal code refactoring(new private ->session())
v0.61 5/18/2011
- Fixed inline Grammar thoughtout the class.uFlex.php file
- Included an installable 'demo'
v0.57 5/5/2011
- Fixed fields not been able to be optional
v0.56 3/11/2011
- Import default profile Guess when user is logout
- Add $Name to hold ucfirst() version of $name in private ->validate()
- Updated ->pass_reset() to avoid manually deactivated users to reset their password
- Added error [14]
- Added extra level error to ->login() error [14]
- Update the ->log_login() SQL query to use the global user defined users_table
- Replace all the remaining static reference to the database table name in the SQL queries.
v0.51 2/3/2011
- Add ->opt['user_session'] to hold a custom userData session variable
- Update the reference of ->opt['cookie_path'] on ->setcookie()
- Added ->opt['default_user'] to hold the default user info. It was posible before, is easier now
- Auto detect an email while logging-in and use email and pass instead of username and pass
- Create ::debug boolean constant to globaly enable and disable the extra data loging for devs
- Merged ->check_sql and with ->check_sql_change function
- Created ->errorList to hold some errors strings for easier customization
v0.41 11/12/2010
- Add ->encode and ->decode functions
- Add the $encoder array variable to class
- Update ->uCofirm to create universal common hash
- Create function to sanitize the confirmation hash ->check_hash
- Update ->setCookie to use new hash
- Update ->login to use new hash for cookie login
- Update ->activate to use new hash
- Update ->register to use the new hash
- Update ->new_pass to use new hash
- Update ->pass_reset to use new hash
- update ->pass_reset to return an associative array with the user_id, username, email and the hash.
- update ->setCookie to use JS if headers are sent
- The ->uConfirm was renamed to ->make_hash
- Update ->validateAll to handle the the field matching
- Added option for custom users table
v0.31 9/1/2010
uFlex 0.31
- Changed the Registration sample form Group Select element name from "group" to "group_id".
- Eliminated a Warning that came up while registering a new user and the username was already registered.
v0.30 6/16/2010
uFlex 0.30
- Optimize the Console form entries( FieldName => Error)
- The field mathing now returns only the second field on error Since it is the second field that needs to match the first.
- on ->register() success the new user id can imidiatly be access by ->id
- By default ->has_error() looks for errors in the last method, Now it takes one optional parameter indicating the method. Ex ->has_error("login")
- new ->getQuery() method
- Global class optimization with the new ->getQuery() method.
- updated ->pass_reset()
- fix ->pass_reset() bug where the confirmation code was not stored in database.
- ->new_pass() parameter and validation update
- Globalized the built-in fields validations
- New private ->validateAll()
- Enhanced the feature to update user from database
- new Session $_SESSION['userData'] and $_SESSION['uFlex'];
- new opts array for global configurations
- Clears erros and form on methods recall
- Made ->setCookie() public method
v0.22 6/01/2010
- Replaced the Object starter function (uFlex) with a PHP Object Constructor
- added the sid(Session ID) variable:
- Added Form error reporting when matching fields on 'register' and 'update' methods
v0.20 5/16/2010
- Added the activation method to the console log
- Added an md5 email hash to the end of the ativation hash
- Trim All fields on registration and update methods
- Fixed some grammar and spelling typos
v0.15 4/15/2010
First Public Relase
+Registration Method
- Custome and Built-in fields validation
- Extendable: add as many fields and validation as required
- Built-in Redundancy check for email and username
- Built-in account activation by email
+Update Method to update anyfield on database
- Built-in Redundancy check for email
- Custome and Built-in fields validation
+Automatic user session handler
- Remember user with cookies
- Handles sessions on new object
+Class wide console
- track and log Errors
- Report every steps for each method
- log validations, connection, SQL queries etc...