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

yii2 always redirect to frontend/web

When i want to access to backend yii2 always redirect me to frontend. Example: I have installed the yii2-user (dektrium) module in frontend and backend and yii2-admin (mdm) module only in backend . And when i want to acess to…
greenpo1son
  • 37
  • 1
  • 8
0
votes
1 answer

Custom userIdentity class in yii2

I want to create custom userIdentity class according to my specific requirements .Here the code is
alwaysLearn
  • 6,882
  • 7
  • 39
  • 67
0
votes
1 answer

Permission not working in yii2 admin

I have installed yii2-user, yii2-admin extensions and given permission to user 'harlan' to /country/* i.e do anything in country controller. When I find the value of Yii::$app->user->can('/country/index') in my code, it shows "1" which means I…
Harlan Gray
  • 341
  • 6
  • 20
0
votes
1 answer

Updating extensions/vendor

I'm trying to update vendor, specifically yii2-user. I'm using command on my root yii2 advanced folder composer update But it doesn't update my yii2-user vendor. Not sure how to update it.
Misko Mali
  • 617
  • 1
  • 7
  • 17
-1
votes
1 answer

How to extract images stored in database in view in yii2?

I am trying to show an image of each trainer when viewed. The images of trainers are taken from a form and are stored in the database. Now I want to extract images. Please help Me. Adding the code for more clarity.I am not sure whether I am…
shivani
  • 1
  • 1
-1
votes
1 answer

Yii2 as beforeRequest leading to infinite recursion

I'm trying to follow this advice about setting all controllers to require login, so my config\web.php $config definition includes 'components' => [...], 'as beforeRequest' => [ 'class' => 'yii\filters\AccessControl', 'rules' => [ …
-1
votes
1 answer

YII2 - Save user ID to work with it on other pages

I'm building a questionnaire site. On this site the user enters his email to receive the result of his questionnaire. So this site has no authentication. How do I store the user's email to the end of the questionnaire? It is my User…
Hamed
  • 313
  • 2
  • 15
-1
votes
1 answer

how to insert data to 2 tables i.e Employee and User(migrated) from single form(Employee Create) and controller in yii2

this is my create page questions/create.php ` field($model, 'clinic_id')->dropDownList( ArrayHelper::map(Clinic::find()->all(),'id','clinic_name'), ['prompt'=> 'Select Clinic'] )?> field($model,…
-1
votes
3 answers

Create multiple logins in the same browser at same time

I want to create multiple logins at a time on the same browser, like admin and user. For that we are using different models like LoginForm.php and Adminlogin.php and different identity classes, i.e. User.php and Admin.php. But when we login with…
Renu Thakur
  • 551
  • 11
  • 35
-1
votes
1 answer

use another language message from dektrium yii2 users

I want use another language message in dektrium yii2 users this plugin have "fa_IR' language messege but i cant change language message from english to another language I think i must change language from here but dosnt work : 'user' => [ …
Saltern
  • 1,305
  • 2
  • 16
  • 42
-1
votes
2 answers

Yii2 overiding user/login for backend

I am using yii2-user module on top of the standard Yii2 advanced demo. Yii2-user provides it's own login function at /user/security/login and linking directly to that works perfectly. However the advanced demo overides that and directs the call to…
nimbusgb
  • 393
  • 1
  • 3
  • 12
-2
votes
1 answer

Override model in yii2 for mdmsoft/yii2-admin

I want to override the model in mdmsoft plugin of yii2. https://github.com/mdmsoft/yii2-admin How can I do it?
Ish
  • 2,085
  • 3
  • 21
  • 38
1 2 3
10
11