uFlex or userFlex is an all in one PHP user class that provides developers with a simple yet secured, reliable and flexible framework like structure class to authenticate their sites and applications. uFlex handles the tedious auth processes for you.
- login user on new object
- register method to easily register new users
- update method to update any field in database
- reset_pass method
- new_pass method
- autologin with cookies
- addValidation method to validate a field upon new registration or update
- Built-in redundancy check for emails and usernames
- Global console that tracks every error, process, and invalid fields
Thanks for Uflex, it's wonderful!
Thanks for the script and the effort. I thought however of leaving a message with a couple of things I would do different, shall somebody plan to use this script to be aware of some possible weakness I found. I would change the whole "remember me" login method. The script leaves a cookie which exposes both the id of the user and a sub string of the user's password hash. While the id is written with some type of encryption, this is very weak and mostly secured by obscurity. Somebody who can grab one cookie set for x user, can generate more cookies that would grant access every time. I would instead generate a token with expiration date and valid for one access only as one way to improve the script
si bien está perfecto le faltarían algunas comprobaciones, y tambien por favor... cambiale lo de <?= por php5 porque en php5 se escribe <?php echo por lo demas está muy bien el script, te felicito, muy recomendable!!!