Questions tagged [yii2-user]

A flexible user management module that handles common tasks such as registration, authentication and password retrieval.

A flexible user management module that handles common tasks such as registrations, authentication and password retrieval.

The full source can be found on Yii2-user Github

The demo site can be found at Yii2-user site

162 questions
0
votes
0 answers

Two users and two tables one lgin using yii2

I have a Assignment to do. my DB has two tables, one for Tutor another one for users. users table is used to login to the system as student. and same goes for Tutor table. up to now students can login. but can't login Tutor. When I'm entering Tutor…
asela daskon
  • 496
  • 1
  • 8
  • 21
0
votes
1 answer

Handling Guests in Yii2 to prevent constant checks

I'm wondering what is generally the recommended way to handle guests in Yii2. Like, for example when you have a logged in user you can simply get their details via a call such as: $user = Yii::$app->user->identity; Then you can do stuff like the…
Brett
  • 19,449
  • 54
  • 157
  • 290
0
votes
2 answers

yii2 login page for advanced templet with admin lte and yii2-user extension

Has anybody tried using the AdminLTE Theme with yii2-user extension? The login to the admin page didn't work for me. I am using localhost for frontend and localhost/admin for backend. The frontend is working fine but I couldn't get it work for…
Yonas Alemayehu
  • 111
  • 2
  • 8
0
votes
2 answers

Yii2 - User Identity Secure?

Is there any way a user can force switch his Yii::$app->user->identity without logging into another account? During development I was logged in as user id #1. I made some design changes to the view then hit refresh then I was suddenly logged in as…
Khalid Al-Mutawa
  • 829
  • 1
  • 9
  • 16
0
votes
3 answers

After using amnah authentication the backend crud of user module shows the Yii2 User Module not the User CRUD

We've been working on a project with Yii2 Advanced App, with a custom bootstrap template. I've generated the crud using gii. All other CRUDs work fine. But the User crud displays Yii2 User Module not the CRUD. I've gone through amnah's complete…
Cameron
  • 26
  • 5
0
votes
1 answer

how to overwrite current theme in yii2.0 with your own theme

I have been trying to use my own downloaded themes in yii2.0. I created a folder called 'themes' in web and copied my theme folder there, then I changed the view in web.php but I still get the default theme. What can I do to make my theme work?
DabHands
  • 69
  • 1
  • 8
0
votes
5 answers

UnknownPropertyException in Yii2 RBAC with yii2-user module configuration

I get the following error while configurating the yii2-module in advanced template: exception 'yii\base\UnknownPropertyException' with message 'Getting unknown property: common\models\User::status' in D:\Programes…
JJPunch
  • 176
  • 1
  • 10
0
votes
0 answers

Registration for different roles

I have 3 roles, which I want registered on my site: client partner trainer All roles must have different fields in the registration form. Now I have form for registration only clients. I think, generating 3 different forms is a true way for…
0
votes
1 answer

Insert data when user is registering

Say me please, I need insert in some table userId and some hash, when user registering on my site. How can I do this? As I understand I need to use events, but I have not figured out how can I use them?
0
votes
4 answers

YII2 Gridview doesn't return selected rows (Uncaught TypeError: Cannot read property 'selectionColumn' of undefined yii.gridView.js:140)

i'm trayng to pass (with post) an array with selected keys from a gridview but i am getting always the same URL's error: POST http://localhost/cngrx/web/index.php/ponenciaresumen/[object%20Object] 404 (Not Found) It seems the code generete always…
Reactib
  • 85
  • 3
  • 14
0
votes
1 answer

how to get facebook email id from Nodge/yii2-eauth

Am trying to integrate Yii2 EAuth for facebook login integration. I made configaration * in model am using below code public static function findIdentity($id) { if (Yii::$app->getSession()->has('user-'.$id)) { return new…
chaitra
  • 83
  • 1
  • 2
  • 9
0
votes
1 answer

Add role dynamically without db while logging in in Yii2

How can I add a role to a user at the time of log in based on his username. I think it can be accomplished using yii\rbac\PhpManager . I tried something like $r=new…
user7282
  • 5,106
  • 9
  • 41
  • 72
0
votes
1 answer

yii2-admin check role of user

I have a role Creator and I want to know how can I check whether the logged in user has Creator assigned to them. I created a function in my User class as: public function getIsCreator(){ $role =…
Abhimanyu Saharan
  • 642
  • 1
  • 10
  • 26
0
votes
1 answer

Restrict Delete Specific User in yii2-user

I'm using yii2-admin and yii2-user. I've created a role Creator who have access to the everything. There is another role called Admin who have limited access. But have the power to delete users. Now I want to restrict Admin from deleting Creator. I…
Abhimanyu Saharan
  • 642
  • 1
  • 10
  • 26
0
votes
1 answer

create custom login in yii2 without default database table

How we can create login form with custom databse table in yii2. I have one table called User and have fields (Id(p.k),UserName,Password). I want to login using above(User) Table . So how can i do this. Thanks for answering.
Sunny Bhakta
  • 81
  • 1
  • 1
  • 10
1 2 3
10
11