robregonm / yii2-auth

Yii 2 User Authentication & Role Based Access Control (RBAC) Module
BSD 3-Clause "New" or "Revised" License
77 stars 37 forks source link

Implement User as behavior? #2

Open schmunk42 opened 10 years ago

schmunk42 commented 10 years ago

Would it be possible to create a UserBehavior for yii2-auth? Instead of this class https://github.com/robregonm/yii2-auth/blob/master/components/User.php would be much more flexible when using with custom user models.

robregonm commented 10 years ago

Sounds good. I think I'll implement that :) Thanks for the suggestion.

djfly commented 10 years ago

+1 good idea