Removed SettingsController and moved its logic into ProfileController, consolidating user profile, account, GDPR, network, and two-factor authentication actions. Updated routes, behaviors, and view files to reflect the new structure. Also updated composer.json to use pcrt/yii2-usuario and pcrt/yii2-select2, added 'surname' to Profile model, and added new attributes to User model. Improved user feedback by redirecting after key actions instead of rendering message views.
109 lines
3.2 KiB
JSON
109 lines
3.2 KiB
JSON
{
|
|
"name": "pcrt/yii2-usuario",
|
|
"description": "Highly customizable and extensible user management, authentication, and authorization Yii2 extension",
|
|
"type": "yii2-extension",
|
|
"license": "BSD-3-Clause",
|
|
"support": {
|
|
"issues": "https://github.com/2amigos/yii2-usuario/issues?state=open",
|
|
"forum": "https://gitter.im/2amigos/yii2-usuario",
|
|
"source": "https://github.com/2amigos/yii2-usuario"
|
|
},
|
|
"keywords": [
|
|
"2amigos",
|
|
"yii",
|
|
"yii2",
|
|
"yii 2",
|
|
"yii framework",
|
|
"user",
|
|
"access",
|
|
"rbac",
|
|
"acl",
|
|
"backend",
|
|
"yii2-user",
|
|
"yii2 user",
|
|
"user management"
|
|
],
|
|
"authors": [
|
|
{
|
|
"name": "2amigOS! Consulting Group",
|
|
"email": "hola@2amigos.us",
|
|
"homepage": "http://2amigos.us",
|
|
"role": "Developer"
|
|
},
|
|
{
|
|
"name": "Antonio Ramirez Cobos",
|
|
"email": "hola@2amigos.us",
|
|
"homepage": "http://2amigos.us",
|
|
"role": "Developer"
|
|
}
|
|
],
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true,
|
|
"require": {
|
|
"php": ">=5.5",
|
|
"pcrt/yii2-select2": "^1.0.6",
|
|
"yiisoft/yii2-authclient": "^2.1",
|
|
"yiisoft/yii2-httpclient": "^2.0",
|
|
"yiisoft/yii2-bootstrap": "^2.0",
|
|
"yetopen/yii2-sms-sender-interface": "^0.1.1"
|
|
},
|
|
"suggest": {
|
|
"yiisoft/yii2-symfonymailer": "A mailer driver is needed to send e-mails. Older versions use abandoned Swiftmailer which can be replaced with symfonymailer",
|
|
"2amigos/2fa-library": "Needed if you want to enable 2 Factor Authentication. Require version ^2 or ^3",
|
|
"2amigos/qrcode-library": "Needed if you want to enable 2FA with QR Code generation. Require version ^2 or ^3"
|
|
},
|
|
"require-dev": {
|
|
"php": ">=7.4",
|
|
"2amigos/2fa-library": "^2.0|^3.0",
|
|
"2amigos/qrcode-library": "^2.0|^3.0",
|
|
"friendsofphp/php-cs-fixer": "^3",
|
|
"yiisoft/yii2-symfonymailer": "^2|^3",
|
|
"squizlabs/php_codesniffer": "*",
|
|
"phpmd/phpmd": "@stable",
|
|
"codeception/codeception": "^4|^5",
|
|
"roave/security-advisories": "dev-master",
|
|
"codeception/module-filesystem": "^2|^3",
|
|
"codeception/module-yii2": "^1.1",
|
|
"codeception/module-asserts": "^2|^3",
|
|
"codeception/module-db": "^2|^3",
|
|
"phpstan/phpstan": "^1.8"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Da\\User\\": "./src/User"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Da\\User\\": "./src/User"
|
|
}
|
|
},
|
|
"config": {
|
|
"platform": {
|
|
"php": "7.4"
|
|
},
|
|
"preferred-install": {
|
|
"*": "auto"
|
|
},
|
|
"fxp-asset": {
|
|
"enabled": false
|
|
},
|
|
"allow-plugins": {
|
|
"yiisoft/yii2-composer": true
|
|
}
|
|
},
|
|
"conflict": {
|
|
"dektrium/yii2-rbac": "*",
|
|
"dektrium/yii2-user": "*"
|
|
},
|
|
"extra": {
|
|
"bootstrap": "Da\\User\\Bootstrap"
|
|
},
|
|
"repositories": [
|
|
{
|
|
"type": "composer",
|
|
"url": "https://asset-packagist.org"
|
|
}
|
|
]
|
|
}
|