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
2
votes
1 answer

How to add custom controller to extension in vender folder in yii2?

I have an extension yii2-admin for RBAC, and I would like to add to this extension another controllers, views, models etc. Because in this module I would like to keep all operations who admin like CRUD for User table and for another. What is the…
2
votes
2 answers

Yii2-admin and Yii2-user compatibility

I am trying to use yii2-user and yii2-admin for my yii2 project. If I use this configuration in my composer "dektrium/yii2-user": "0.9.*@dev", "mdmsoft/yii2-admin": "~2.0", I get errors in admin module. They are simply not compatible. One…
Harlan Gray
  • 341
  • 6
  • 20
2
votes
1 answer

Yii2. Override module class

Is it possible to override module Module.php class to add some additional configs? I've extended some views and controllers and want to add a few additional configs for them.
D.R.
  • 2,540
  • 3
  • 24
  • 49
2
votes
1 answer

Yii2-user Dektrium - Registration Controller not exists error when i override

I encountered a strange issue today with Yii2. I am using yii2-user extension and i have overridden the RegistrationController in my app folder to add few more features. The thing is its working fine in my XAMPP but not in the server (Cent OS). Im…
SP-TY
  • 973
  • 1
  • 7
  • 13
2
votes
5 answers

Yii2 without email confirmation user can't login

When user sign up, system send a confirmation email to user its work good but without any email confirmation system automatic login or user can login. How can i solve this, that user should confirm email before login and if user not confirmed an…
Umar Ali
  • 404
  • 4
  • 14
2
votes
1 answer

After adding new column "name" to user table in yii2 advanced, data not getting saved in it

After assigning all required values to user model (column which i have added also). When I am using $model->save() data for all default attributes getting saved except the one I have added. I trying insert via REST call. If there is any other way to…
akhil
  • 347
  • 1
  • 3
  • 16
2
votes
2 answers

Controller mapping causing error in yii2 console application

Module section config 'user' => [ 'class' => 'dektrium\user\Module', 'modelMap' => [ 'User' => 'app\models\DL\User', 'registrationForm' => 'app\models\DL\registrationForm', ], …
StalkAlex
  • 743
  • 7
  • 16
2
votes
1 answer

Moving Yii2 Admin to Extensions Folder

I have the need to move the Yii2-admin module to extensions folder from vendor folder. So my module is now extensions/mdmsoft. In my config directory I add the alias 'mdmsoft/yii2-admin' => array( 'name' => 'mdmsoft/yii2-admin', …
Harlan Gray
  • 341
  • 6
  • 20
2
votes
3 answers

Yii2 password hash

I'd like to know how password hash is generated? // This is my code: $email="mail@example.net"; $password="mypassword"; // How to get password_hash variable? $user = User::find()->where(['email'=>$email,…
Nedim
  • 563
  • 1
  • 11
  • 23
1
vote
1 answer

Yii2 using authclient for facebook and google login not working

Sorry people, I'm really new in Yii2 framework!! I'm trying to do a web login using "yiisoft/yii2-authclient" at version 2.2.14 After client autentication, nothing happen and the new user is not logged in and the auth table is empty I state that I…
1
vote
0 answers

yii2 role based scenario

I'm developing a yii2 rest api based app that has different roles of users (Admin, Customer, Shop, Service). I'm planning to use scenarios with one user database table contains union of fields that requires all roles. (80% is the same) I would like…
Bence
  • 63
  • 4
1
vote
3 answers

How to hide admin account from other users

I am working on yii2. I have some user roles. Admin has all the level of access. Other users have a low level of access. There is a user list which is visible to the other user. In this list all of the details of the users in the system is…
Moeez
  • 494
  • 9
  • 55
  • 147
1
vote
1 answer

Yii2- How to restrict a user from viewing others data in index page

I am working on yii2 in my project, I have users and their roles. Each role is given access to a Module and a Sub Menu. There is a sub-menu named SIM List in which all the SIM records can be viewed. There is a field named issued_to which tells us…
Moeez
  • 494
  • 9
  • 55
  • 147
1
vote
1 answer

How i set permission for accesscontrol of mdmsoft/yii2-admin

I created a permission for my system and by this extension others working fine. As example I set permission for Page module then I used below code if(\Yii::$app->user->can('page_module')){}else{ throw new ForbiddenHttpException("You are…
Destroyer.0211
  • 113
  • 1
  • 3
  • 13
1
vote
0 answers

How to change dashboard as per roles to employees in yii2?

I am using yii2 basic and Admin LTE I have Employee table and I have assigned Employee model to user application component and implemented RBAC. I have Dashboard Controller and view. 1. Now when admin logs in, and clicks on Dashboard menu, he can…
Questions
  • 69
  • 1
  • 12
1 2
3
10 11