sarvan75 / yii-user-management

Automatically exported from code.google.com/p/yii-user-management
0 stars 0 forks source link

How to use AUTH FORM separetely? #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I cant set up YUM login form to work with other module separately.
The main idea is using login form with other module to authorize users from YUM 
users db.
What do i need to do this? 

Original issue reported on code.google.com by sergey.m...@gmail.com on 9 Mar 2011 at 11:06

GoogleCodeExporter commented 9 years ago
When I using LoginWodget, it redirects me to /user/auth page, where i need to 
reenter account data, after this module redirects me to it's own admin page, 
but i need redirection to my special page.

Original comment by sergey.m...@gmail.com on 9 Mar 2011 at 12:22

GoogleCodeExporter commented 9 years ago
Ok, i will give an answer over the issue tracker rather than the yii forum.

In order to implement your own login Page, you can use the 
user/models/YumUserLogin.php class file. This model stores the data and 
validation logic needed to log in to your Web Application.

Just pass a instance of this model to your project-specific view, let the user 
fill the data and let YumWebUser do the authentication. 

Please let me know if this works. We could write a small tutorial then, for 
other people to read.

Original comment by thyseus on 10 Mar 2011 at 11:13

GoogleCodeExporter commented 9 years ago
I'm still confused on YumWebUser, there is no auth method?

Original comment by sergey.m...@gmail.com on 10 Mar 2011 at 12:14

GoogleCodeExporter commented 9 years ago
Do I need to use YumUserIdentity?

Original comment by sergey.m...@gmail.com on 10 Mar 2011 at 12:20

GoogleCodeExporter commented 9 years ago
How to change returnUrl in module? I cant do it, i'm trying to change this 
variable by changing Yii::app()->user->returnUrl = 
Yii::app()->createUrl("/backend") at module init(). Am I right?

Original comment by sergey.m...@gmail.com on 10 Mar 2011 at 1:51

GoogleCodeExporter commented 9 years ago
please take a look at the new revision, i take care of the returnUrl now 
(YumAuthController.php)

Original comment by thyseus on 16 Mar 2011 at 8:26