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
1
vote
1 answer

Yii2 - terminate App from event handler after triggering

I'm using yii2-user for user registration. I want to check whether the user is registered on not before logging in from social account(s). I'm triggering event before creating his account and handling it in the main.php globally. If user is already…
Choxx
  • 945
  • 1
  • 24
  • 46
1
vote
1 answer

How to save selected data from checkbox to database

My problem is when I select data from the check box and click save button, I do not know where it goes. Do I need to make another table or add column in events table. This is the coding for index.php for events.
Fyp16
  • 131
  • 1
  • 5
  • 16
1
vote
1 answer

Display gridview based on user login in yii2

How to display gridview based on current user login at index? For example, student A login and fill the form and logout. When other student login, the data that has been filled by student A will not display. At gridview
Fyp16
  • 131
  • 1
  • 5
  • 16
1
vote
1 answer

Yii2 in third party software - user module not found

I've installed MediaWiki and am trying to achieve single sign-on, so that when my users sign into their accounts on my Yii2 system, they can also be signed in to the wiki. So I want to 'Yii-fy' the wiki so I can fiddle about with the auth code. With…
Gary Fox
  • 31
  • 2
1
vote
0 answers

Yii2 User Registration with Google

I am using Yii2 User module for managing users in my Yii2 project. I have enabled authentication with Google and Facebook. I can login with Google and Facebook, but cannot register a new user with social authentication. It looks like it was possible…
Harlan Gray
  • 341
  • 6
  • 20
1
vote
2 answers

Yii2. dektrium/user. Custom controller action redirects to the login page

Problem Every custom action redirects back to the login page. My code I've extended my custom controller from the dektrium\user\controllers\RegistrationController My web.php 'urlManager' => [ 'enablePrettyUrl' => true, …
D.R.
  • 2,540
  • 3
  • 24
  • 49
1
vote
1 answer

Yii2 save in the table user_id account

I'm a beginner in yii2 , I would like to save in the table associated with the account , the account id . Any suggestions? My Model class Offri extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function…
Saba
  • 115
  • 1
  • 15
1
vote
1 answer

How to implement this kind of layout in new model?

In @dektrium/user/views/admin/_account.php @dektrium/user/views/admin/_info.php @dektrium/user/views/admin/_profile.php there are beginContent('@dektrium/user/views/admin/update.php', ['user' => $user]) ?> 'the rest codes'
exneval
  • 43
  • 1
  • 4
1
vote
1 answer

Yii2 how to include multiple css files from specific view or controller action

I have installed YII2 of my local server and I want to include separate css file from specific view or controller action, I have used a method but the method on include one css file in my specific view , could any one answer me for the solution my…
1
vote
2 answers

Saving user password in yii2 fails

Am trying to update a users password but it fails to save it This is the controller code: public function actionChangepassword($id) { $model = new UserPass(); $user = $this->findModel($id); if ($model->load(Yii::$app->request->post()))…
Geoff
  • 6,277
  • 23
  • 87
  • 197
1
vote
1 answer

How to use action /user/profile/show in label?

I just want to add Profile in navbar for logged user. And I found /user/profile/show in dektrium yii2-user docs. But it said: Displays user's profile (requires id query param) How to implement /user/profile/show in label that requires id query…
exneval
  • 43
  • 1
  • 4
1
vote
3 answers

Where is the yiic command?

I downloaded yii framework (both basic and advanced) from http://www.yiiframework.com/download/. But I could not find yiic command after extracting the zip file. I need to use this command to create migrate file for databases. I wonder where yiic is…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
1
vote
1 answer

Yii2 - Dropdownlist is selected and set value for input field

I have this in my view (_form.php).