Yii Framework Forum: User management with roles and a password reset mechanism - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User management with roles and a password reset mechanism

#1 User is offline   rhmtts 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 20-December 11

Posted 26 November 2014 - 03:21 AM

Hi all,


Here's a little something we made for providing user authentication, assigning roles to users and providing a password reset mechanism via email.

Basically what it is is a bunch of additions to the default Yii2 User / RBAC mechanism consisting of:

  • An editor for assigning roles to users
  • A password reset mechanism with the following features:
    • Request password reset tokens. An example is provided of how to do it via a controller, but you can provide your own mechanism if you want.
    • Emails are sent out telling a user a password reset request has been made and providing a link to a form where the password can be reset.


It's not much, but it's the basics (for us, anyway) for making a simple web app happen, so I thought some of you would find it useful.

It's not packaged as an extension yet since I didn't have the time, hence this is posted here and not in the extensions forum.

The code is here:

https://github.com/H...-authentication
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users