Forked from: https://github.com/dektrium/yii2-user, modified to work with MongoDB.