Yii 2 usuario is a highly customizable and extensible user management, RBAC management, authentication, and authorization Yii2 module extension.
It works extensively with Yii's Container making it really easy to override absolutely anything within its core. The module is built to work out of the box with some minor config tweaks and it comes with the following features:
We considered that RBAC was essential to be included into any user management module, even if you simply use one user
with admin
role, its much better to actually work with RBAC just in case your application scales in the future.
With the release of 1.6, contributors started implementing changes for supporting newer versions of the Boostrap library, being Usuario stuck at 3.
Up until around May 2023, the master
branch will remain stable, so devs who in these years relied on it for
deployment can have time to migrate to a stable version.
BS5 development is ongoing on branch 2.0.0-dev
,
which will eventually be merged in master
around May.
You can check issues #476, #488, #500 for updates, or the branch itself.
You can read the latest docs on http://yii2-usuario.readthedocs.io/en/latest/
If you have issues, please use the Gitter room of this repository https://gitter.im/2amigos/yii2-usuario. Please, remember that we may not be online all the time. We expect that we can build a community around the users of this module
Please, read our CONTRIBUTION guidelines.
This module is highly inspired by the excellent work of Dektrium on both of its modules:
In fact, we have used some of its processes, commands, views, and some of its attribute names to somehow standardize the modules and make it easier for our developers to swap from Dektrium's modules to our own.
Beyond Software
www.2amigos.us
RuntimeException
to NotFoundException
. (eseperio)WARNING: this release (long time due) makes a step forward in PHP compatibility, leaving behind obsolete versions. While yii2-usuario should still work without issues on 5.6, from now on testing and development will look forward and maintain only >=7.4 versions.
There's also a security issue for 2FA tokens: settings/two-factor
route
wasn't checking for the currently logged in user, so any authenticated account
could access to all user's 2FA root code. If you cannot upgrade, check
24d5d5744fe0.
There's a change in flash messages handling, please see #391.
UserEvent
to avoid conflicts with events in FormEvent
(Slayvin)password_changed_at
to be saved when reseting password (p4blojf)EVENT_BEFORE_PROFILE_UPDATE
to correct place (eluhr)enableFlashMessages
only to dictate display (ajmedway)AdminController
REST controller (MatteoF96)setUser
for LoginForm model (liviuk2)last-login-ip
capture capability (kartik-v)View::render()
calls in views to use absolute paths (ajmedway)admin/force-password-change
action (bscheshirwork)asset-packagist
instead of fxp-asset
if you run it as a module without having a project around (bscheshirwork)allowPasswordRecovery
for resend email by admin (bscheshirwork)GDPR
properties to lowerCamelCase
style (bscheshirwork)GDPR
delete action to lowerCamelCase
/dash
style (bscheshirwork)from
email address; Change default sender to supportEmail
(bscheshirwork)email send if possible
any time on reset password request (bscheshirwork)enableAutologin
configurable (pappfer)+
sign in username (maxxer)enableFlashMessages
in PasswordRecoveryService
(maxxer)MailEvent::getException
(kartik-v)AccessRuleFilter
to evaluate roleParams
(kartik-v)last_login_at
field to user table (pappfer)
Comments