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
2 answers

Yii2 auth_rule usage (Yii2 RBAC)

I am working with Yii2 basic templates and working on auth_manager. I have read about this at below link : Yii2 Authorization and i have check this also How can we use the auth_rule table in Yii2 RBAC? And now i know these things: how to assign…
0
votes
1 answer

Yii2 advanced : how to set filter for login user in backend?

All users can now login in frontend and backend side how can i set limit and filter for login in backend?! this is my main-local.php in backend 'modules' => [ 'user' => [ 'class' => 'dektrium\user\Module', …
Saltern
  • 1,305
  • 2
  • 16
  • 42
0
votes
0 answers

Integrate with already existing Users table

I have an application where users can login, I would like that existing users will be able to login in Wekan. How I can implement this ? Is there an available an LDAP login or similar ? Thanks.
DIma
  • 27
  • 10
0
votes
2 answers

Yii2 - list every post - coding error

I am new in Yii2 and I made a site where i can write posts, view them, delete them etc... I want to list every post from a DB on one page as a "timeline" My code does not list any error simply just show the very first record only. Here is my code…
user65748
  • 5
  • 2
0
votes
0 answers

How to change time for stay in login (dekturim users)

I want to change the time of stay in login in my site. How can I change it? I founded $authTimeout for this issue but I can't use that! This is my config of web.php: 'modules' => [ 'user' => [ 'class' => 'dektrium\user\Module', …
Saltern
  • 1,305
  • 2
  • 16
  • 42
0
votes
2 answers

YII2 Show data in view file according to user id

I am working on my collage project in which admin can create Employees(Teachers) and teachers can create students now my problem is that in index and view file any employee can see the total list of students recently added. i want to put condition…
0
votes
0 answers

How to allow an employee to login to system only if role has been assigned by admin in yii2?

I am using yii2 basic and have implemented RBAC using permissions, roles. I have Employee table and I have assigned Employee model to user application component. Now the scenario is when admin creates employee he has to assign a role to that…
Questions
  • 69
  • 1
  • 12
0
votes
4 answers

Yii2: Customize login failure message with exact reason

I want to customize login failure message in Yii2. Right now, when I type wrong username or wrong password it will show same message for both. Now i have one column in user table i.e. is_verified if user email is verified then I set value of this…
Fahad Ali
  • 114
  • 1
  • 14
0
votes
1 answer

How to change menus on sidebar of Admin LTE as per roles in yii2?

I am using Yii2 basic. I have Employee table and I have assigned Employee model to user application component as follows in config file: 'user' => [ 'identityClass' => 'app\models\Employee', 'enableSession' => true, …
0
votes
3 answers

how to add data from Employee table to user table in YII2 advanced

I am working on my collage project i.e. Employee Management. I have Employee table in sql(crud is also generated from gii). only Admin is having rights to create Employee (there is no Signup). My Problem: when I am creating employee then I am not…
0
votes
1 answer

Why are there many identical requests in auth_assignment in yii2?

I'm developing a small admin panel on yii2. I use rbac and yii2-admin. There are a lot of identical requests in the debugger. These are: SELECT * FROM `auth_assignment` WHERE` user_id` = '5' I do not make queries to the tables of the rbac. My…
0
votes
1 answer

How to have working Admin LTE in yii2 basic application template

I am using yii2 basic application template. How to configure, install and have working admin lte?
Questions
  • 69
  • 1
  • 12
0
votes
1 answer

How to show records created by that users on index page in yii2?

I am using yii2 basic and implemented RBAC. I have two roles admin and fieldofficer and created permissions and rules and assigned users. Now when admin logs in, on index page he should be able to see all records as well as his created records in…
Questions
  • 69
  • 1
  • 12
0
votes
1 answer

How to authenticate admin and employee using identityclass in yii2

We can authenticate employees using identityclass feature provided in yii2. What if Admin is not an employee.? Can we have two identity class in config.php or how to implement such case?
Questions
  • 69
  • 1
  • 12
0
votes
1 answer

Authentication not working in yii2

I have Employee table whose structure is as follows: EmpId FirstName LastName Username Password Now in application component I have included my custom class as follows: 'user' => [ 'identityClass' => 'app\models\Employee', …
Questions
  • 69
  • 1
  • 12