amnah

Results 42 comments of amnah

I would just copy the files to extend your own base. In terms of maintenance, they're updated very [infrequently](https://github.com/amnah/yii2-user/tree/master/controllers) anyway

ummm just create a controller/action in your base application? you dont need to do it in this module

hmm not exactly sure what you're asking ... can you explain a bit more?

You mean you want the user to have to log in to go to the main page (homepage)? If so then you just need to add authorization to your controller...

You can create a new controller to extend and override it ```php // /path/to/controllers/AuthController.php namespace app\controllers; class AuthController extends \amnah\yii2\user\controllers\AuthController { public function loginRegisterCallback($client) { // update as needed }...

Seems like you have some bad data in your database, either the user is deleted or the userAuth has an invalid user id https://github.com/amnah/yii2-user/blob/master/controllers/AuthController.php#L136

What's the context? It looks like you're passing in an empty string https://github.com/amnah/yii2-user/blob/master/models/Role.php#L106-L115

I'm not sure really. You haven't given me any info to work with, so i recommend that you walk through the code starting from the controller -> action logout On...

Where did you get `username` from? The field should be called `email` https://github.com/amnah/yii2-user/blob/master/models/forms/LoginForm.php#L16

~~Did you update the configuration for the [frontend](https://github.com/yiisoft/yii2-app-advanced/blob/master/frontend/config/main.php#L19) and the [backend](https://github.com/yiisoft/yii2-app-advanced/blob/master/backend/config/main.php#L20)? These two config files will overwrite what you have in the ```common``` config.~~ Edit: wrong