Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 23 2019 21:39
    WhatTheBuild starred 2amigos/yii2-usuario
  • Jan 21 2019 15:22
    qav-gabriela-castro starred 2amigos/yii2-usuario
  • Jan 17 2019 14:14
    ljfreelancer88 starred 2amigos/yii2-usuario
  • Jan 17 2019 07:40
    tsdogs opened #302
  • Jan 15 2019 15:59

    tonydspaniard on master

    Add nl_NL Dutch translation. Mi… Improve translations Merge pull request #301 from sq… (compare)

  • Jan 15 2019 15:59
    tonydspaniard closed #301
  • Jan 15 2019 15:57
    tonydspaniard commented #301
  • Jan 15 2019 15:05
    squio synchronize #301
  • Jan 15 2019 10:17
    squio opened #301
  • Jan 04 2019 13:40
    maxxer commented #298
  • Jan 04 2019 13:20
    theonedemon starred 2amigos/yii2-usuario
  • Jan 04 2019 12:50
    schmunk42 opened #298
  • Dec 31 2018 10:31
    maxxer closed #293
  • Dec 31 2018 10:31
    maxxer commented #293
  • Dec 31 2018 10:30

    maxxer on master

    Fix password expire service #293 (compare)

  • Dec 19 2018 15:34
    steelice starred 2amigos/yii2-usuario
  • Dec 19 2018 10:22
    tonydspaniard commented #289
  • Dec 19 2018 07:47
    bscheshirwork commented #289
  • Dec 18 2018 21:01
  • Dec 12 2018 16:35
    maxxer commented #289
Hi, how can force user logout ?
I've a link with data-method="post" but return me Method Not Allowed. This url can only handle the following request methods: POST.
solved ... in SecurityController I edit this:
'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'logout' => ['post','get'], ], ],
Any example for add relation models in registration process (registrationForm file) ? tnx
Tõnis Ormisson
I am in a process of trying to migrate from dektrium to usuario and ran into some migration trouble
Im not really sure where the issue lies but maybe this rings a bell with anyone
I have the config migration set up as migrationNamespaces
and what I want to do is so a migration/mark on the 000001 ... 000005 (since I have the dektrium already) and then run only the last one which adds extra to dektrium
I get to mark the 000001 nicely, but after that I start getting problems
setting the 000002 throws me: Error: Unable to find the version '000000_000002'.
Tõnis Ormisson

$ php yii migrate
Yii Migration Tool (based on Yii v2.0.13.1)

Total 7 new migrations to be applied:

I still see the 000001 there
Tõnis Ormisson
if I remove the migrationNamespaces from config and use the command line --migrationPath=@Da/User/Migration I am able to mark the necessary migrations
but then if I want to apply the 00006 I get an exception:
$ php yii migrate --migrationPath=@Da/User/Migration
Yii Migration Tool (based on Yii v2.0.13.1)

Total 1 new migration to be applied:

Apply the above migration? (yes|no) [no]:y
*** applying m000000_000006_add_two_factor_fields
Exception 'ReflectionException' with message 'Class m000000_000006_add_two_factor_fields does not exist'

in /var/www/html/vendor/yiisoft/yii2/di/Container.php:426

Stack trace:
#0 /var/www/html/vendor/yiisoft/yii2/di/Container.php(426): ReflectionClass->__construct('m000000_000006_...')
#1 /var/www/html/vendor/yiisoft/yii2/di/Container.php(364): yii\di\Container->getDependencies('m000000_000006_...')
#2 /var/www/html/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('m000000_000006_...', Array, Array)
#3 /var/www/html/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('m000000_000006_...', Array, Array)
#4 /var/www/html/vendor/yiisoft/yii2/console/controllers/MigrateController.php(195): yii\BaseYii::createObject(Array)
#5 /var/www/html/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(724): yii\console\controllers\MigrateController->createMigration('m000000_000006_...')
#6 /var/www/html/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(199): yii\console\controllers\BaseMigrateController->migrateUp('m000000_000006_...')
#7 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#8 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#10 /var/www/html/vendor/yiisoft/yii2/console/Controller.php(135): yii\base\Controller->runAction('', Array)
#11 /var/www/html/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('', Array)
#12 /var/www/html/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('migrate', Array)
#13 /var/www/html/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('migrate', Array)
#14 /var/www/html/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#15 /var/www/html/yii(20): yii\base\Application->run()
#16 {main}
Tõnis Ormisson
OK, got it by RTFM
While operating namespaced migrations: creating new, reverting and so on, you should specify full namespace before migration name. Note that backslash () symbol is usually considered a special character in the shell, so you need to escape it properly to avoid shell errors or incorrect behavior. For example:
so this works for migrating from dektrium (and skipping the dektrium-related migrations):
php yii migrate/mark Da\\User\\Migration\\m000000_000002
Thank you for the module and your attention :)
kechad cherif
Hi every one I am new to Php and Yii i think use yii2-usuario but after executing migration i have problem with User Model
Unknown Method – yii\base\UnknownMethodException
Calling unknown method: common\models\User::getIsAdmin()
kechad cherif
Hi! I solved problem with enhance User model but I have another problem Forbidden (#403) when I try to access to role management, thanks in advance.
kechad cherif
I solved problem with adding user administrators thank you for the module :)
Hi. Thank's for great module! Is any setting or help exist to upload image to user profile? I don't want to reinvent the wheel ))
Can I use https://github.com/cinghie/yii2-user-extended ? It is based on yii2 user, but your module has legacy with it.
Hi Team
When i am creating new rule then "Authentication rule class yii\rbac\Rule can not be instantiated" this error is coming. Please help anyone.
I am using Advanced Application Template.
Hi,I m trying to move from yii2-user to this module, but when I configure to sign in by using social network such as google or facebook - it seems to have "Unable to create an account". Any ideas?
Lorenzo Milesi
Hello! Tell me please, when you turn on two-factor authorization, the ability to remember the authorization of the user is missed or so provided? (translate)
Rabesh Lal Shrestha
Helloo all
I need help related to permission and rules related to yii2 usuario
I am new to yii2-usuario
can anyone help me how to create rules and permission in that extension
Rabesh Lal Shrestha
Authentication rule class yii\rbac\Rule can not be instantiated
Amit Arya
@rabesh any solution??
Amit Arya
hello folks, have you guys encountered this problem??
John Goetz
Hello, I've used Dektrium yii2-user and yii2-rbac in previous projects but now am tasked with standing up a Yii2 Advanced Template with Usuario.
I have a couple of suggestions:
For your Advanced Template instructions the step to add Usuario to a freshly downloaded and configured Yii2 Advanced Template is missing. Could you add a "Composer require 2amigos/usuario" statement in your instructions? That would help users who are unfamiliar with Yii2 and composer.
After downloading and configuring the Advanced Template, including its migration steps, the Usuario migration fails because there's already a User table. I have to drop the existing User table (or modify the migration to drop it) before the Usuario migrations run. Perhaps your documentation could show that?
Thanks for your attention, and happy hacking!
John Goetz

Another comment about the instructions: The second migration, yii migrate --migrationPath=@yii/rbac/migrations, won't work unless the authManager has been configured. Could you add that to the Components section of the example in Step 2? This would help people who aren't familiar with RBAC and haven't configured Dektrium before.

About my previous comment where I mentioned the User table and failing the first migration. My apologies, I see now you have a note to not install the Advanced Template migration m130524_201442_init.php. However, if a user has already completed the Advanced Template setup, they will have already done this migration. Perhaps you could place a note above the mention of the Advanced Template to warn users not to perform the migrations as the Advanced Template instructions state, and if they have done so, to drop the table?
Again, thanks for listening.

John Goetz
Hello, has anyone successfully installed Yii2-usuario on the Advanced Template? We are running into problems that seem well beyond average. Any hints?
but is this project still to be considered alive?
It seems interesting but I met a lot of problems during its implementation...
Amit Arya
has anyone managed to change mail template contents after registration?
Pedro Luis Rodríguez Amador
how to generate admin full control role and permission ?