Most of web applications provide a way for users to register, log in or reset their forgotten passwords. Rather than re-implementing this on each application, you can use Yii2-user which is a flexible user management module for Yii2 that handles common tasks such as registration, authentication and password retrieval. The latest version includes following features:
NOTE: Module is in initial development. Anything may change at any time.
Read the Documentation for master
Read the Documentation for v0.9.12
All installation instructions are located in documentation.
If you have any questions or problems with Yii2-user you can ask them on our forum.
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
Yii2-user is released under the MIT License. See the bundled https://github.com/dektrium/yii2-user/blob/master/LICENSE.md for details.
getAccountByProvider
to User model to get account model by provider name (dmeroff)enh
Added new method to Profile model to get avatar url (dmeroff)fix
Fixed translations sourceLanguage (thezilla-)enh
Added ability to grant access to admin part via roles (Talwoasc)fix
Fixed postgresql migrations (kfreiman, drxwat)enh
Improved login widget (dmeroff)enh
Support for custom admin
role via access control rule out of the box #510 (dmeroff)fix
Removed ability to register a new account via social network when registration is disabled #512 (dmeroff)fix
Added check if profile model exists in Settings controller #497 (dmeroff)enh
Added event triggers to most of actions #411 (dmeroff)enh
Added LinkedIn client #496 (SamMousa)fix
Don't set mailer subject in bootstrap #451 (dmeroff)enh
Remove old user tokens with same type while creating new #340 (dmeroff)fix
Forbid ability to login via networks for blocked users #434 (dmeroff)fix
Fixed problems with url rules #351 (dmeroff)enh
Regenerate auth_key
after blocking the user (dmeroff)enh
Improved registration process #236 (dmeroff)fix
Ensure user/index works without php-intl extension #370 (thyseus)fix
Fixed display of confirmation time #361 (pedros80)fix
Do not limit username length to 25 chars #369 (thyseus)enh
Added ability to override translations (dmeroff)enh
Improved authentication via social networks (dmeroff)enh
Added Latvian translation (uldisn)enh
Added redirect to index page when logged in user tries to access login page (thiagotalma)fix
Updated Italian translation (maxxer)enh
Added usage of adminEmail
param as default sender name if set (thiagotalma)enh
Added link to registration page on login form (thiagotalma)enh
Improved username regexp (thiagotalma)fix
Updated translations for Portuguese language (invaderhd & thiagotalma & andredp)enh
Added integration with Yii2-rbac (dmeroff)enh
Improved admin views and controller (dmeroff)enh
Added datepicker in user grid view (dmeroff)fix
Fixed bug with inability to connect network account #275 (dmeroff)enh
Added turkish translation (veyselsahin)enh
Added lithuanian translation (vilkazz)fix
Fixed button css on profile settings page (sosojni)enh
Hidden recovery link when enablePasswordRecovery
is false (marsuboss)fix
Fixed gravatar hash creation (nigelterry)fix
Fixed invalid redirection after changing account settings (WeeSee)fix
Updated messages to be more readable (jspaine)fix
Reverted initialization of user
component (dmeroff)fix
Fixed bug on confirmation and recovery when invalid token was used (anders-akero)enh
Improved initialization of user
application component (dmeroff)fix
Fixed encoding problem with plain text email messages (dmeroff)fix
Fixed migration (dmeroff)fix
Fixed overriding of mailer view files (dmeroff)fix
Fixed troubles with overriding user search model (dmeroff)fix
Fixed bug when model was defined as array in modelMap (dmeroff)fix
Removed ajax-request flood on login form (thiagotalma)enh
Added th
translation (kongoon)fix
Fixed overriding of active record models (dmeroff)fix
Fixed pt-BR translation (thiagotalma)fix
Changed ip field type to VARCHAR(45) to handle IPv6 (dmeroff)enh
Improved mailer component (dmeroff)enh
Updated flash messages and added new module option to disable them (dmeroff)enh
Added ajax-validation (dmeroff)enh
Added secured email changing strategy (dmeroff)chg
Removed ability to delete or block your own account from admin pages (dmeroff)chg
Updated create and update admin pages (dmeroff)chg
Updated admin index page (dmeroff)chg
Removed auto-injecting module in application (belerophon)chg
Removed Mailcatcher dependency from test suite (dmeroff)chg
Refactored all models (dmeroff)enh
Refactored model overriding system (dmeroff)fix
Fixed croatian translation (trbsi)fix
Fixed spanish translation (abolivar)chg
Added persian farsi translation (bepehr)chg
Added hungarian translation (akosk)chg
Added dutch translation (infoweb-internet-solutions)fix
Fixed pt_BR translate (thiagotalma)fix
Fixed relation between User and Profile (anders-akero)fix
Fixed translations (sosojni)fix
Added registration_ip label (sosojni)fix
Fixed test suite (dmeroff)chg
Updated composer.json
(dmeroff)chg
Added check for enableConfirmation
for resending link (makroxyz)fix
Fixed compatibility with PostgreSQL (makroxyz)fix
Updated admin grid view (hoksilato)fix
Recovery token is now deleted after recovery process (mrarthur)fix
Registration_ip is now filled with user ip address on registration (mrarthur)chg
Refactored email change process (dmeroff)enh
Added account settings page and removed email and password settings pages (dmeroff)enh
Added tab index on login page (maxxer)enh
Added getIsAdmin
method on user model (maxxer)fix
Fixed bug when registration page was not available with enableConfirmation
option disabled (marsuboss)email
, username
, both
Comments