Login not working
I have a problem with login. I installed this component, and everything worked fine.
The problem is that when I login, I actually pass credentials check, but still I am not logged in Yii.
Anybody knows what can I do?
Thanks.
Hi, need more data =) Did it redirect you or you stays on the same page ?
I tried both. I tried to redirect after login or to return to homepage (I have a clean Yii installation).
The yii::app->user->IsGuest line always returns true.
No, I mean after you enter credential and click "Login" button - application redirects you to another page or stays there ?
it redirects in the homepage, but I am not logged.
Lets debug :)
Could you set breakpoints (like die('1'), die('2'), etc) in AuthController on the following lines
- 44 ( die('1'); before return $this->goHome(); )
- 57 ( die('2'); before return $this->goBack(); )
it dies at second die (line 57).
Anyone can help me?
Hmm, it's really strange. Like really strange. Could you upload your app in some repository. Just remove all data except core and this moduel and I'll try find what is the problem
Have the same problem, any solution?
@GiacomoK Check in backend config and remove the 'user' component default. Solved my problem.
@GiacomoK , if you installed Yii2-advance-app, follow @marcelodeandrade 's recommendation. Seems like the configuration instructions for this module is based on Yii2-basic-app.
@HanafiAhmat , I've followed above steps given but it not works for yii2 advanced app. After login redirects to login page only. May I know how to solve it.
@msankar1991 You follow my tip? Check all configs [common,frontend,backend]
@HanafiAhmat , Yes. I've followed the tip for remove user component default only but it not works.
@msankar1991 , if your advance app is a clean install, @marcelodeandrade tip should work. Else, there might be some misconfigurations in either your common config or backend config. can you show us your configuration files?
Have similar problem. When I log in from backend I am not logged in frontend
@sabirgojayev, does your frontend app share the same cookie session with backend app? Default yii2-advanced-app configurations separates them.
I solved the problem was as @HanafiAhmat said in cookie session parameter in config