Commit Graph

79 Commits

Author SHA1 Message Date
8a81ad7c42 Add optional to control wether a welcome mail should be send after a registration by social network 2024-01-05 15:49:25 +01:00
e5d5ea426d Always save the user account when created via the social network authenticate service 2024-01-05 15:39:19 +01:00
9aea9c76c0 Always save the user account when created via the social network authenticate service 2024-01-05 15:27:13 +01:00
edfbc44c52 Add separate property for social network registration 2024-01-05 15:05:26 +01:00
a7e044febf Make user id attribute for social network authentification configurable 2024-01-05 14:56:15 +01:00
ed5ae8fca5 Merge branch '2amigos:master' into patch-1 2023-12-15 18:31:08 +01:00
2ca349964f Update PasswordExpireService.php
remove useless if statement
2023-12-15 13:54:27 +01:00
3d8c4c747d Update PasswordExpireService.php
Fix PasswordExpireService return error when user model attribute "password_changed_at" is already set at null.
2023-11-21 14:19:17 +01:00
4b1536f934 fix(TwoFactorAuthenticationEnforceFilter.php): use $user variable instead of accessing Yii::$app->user->identity multiple times for better readability and performance
fix(MailService.php): remove unnecessary whitespace before $this->mailer to improve code formatting
2023-09-24 16:10:44 +05:30
40a76b1eda 🐛 fix(2FA): Two Factor Authentication - Filter - Blocks even when two factor authentication is enabled
🐛 fix(email): add error logging when email sending fails
🔒 chore(2FA): fix TwoFactorEmailValidator to pass user as an array
The TwoFactorAuthenticationEnforceFilter was blocking users even when two factor authentication was enabled. The filter now checks if the user has two factor authentication enabled before blocking them. The MailService now logs an error when email sending fails. The TwoFactorEmailValidator now passes the user as an array to the TwoFactorEmailCodeGeneratorService.
2023-05-25 21:01:42 +05:30
1c16ece741 fixed userBlockService controller type check to use "instanceof" to allow overridden controllers 2022-10-05 13:35:35 +03:00
ced062856f Added REST admin controller 2022-09-22 16:06:44 +02:00
569b049011 implement module viewPath in all views instead of static file reference 2022-09-08 09:41:08 +03:00
99271a55c3 Removed useless double string 2022-08-15 08:16:50 +02:00
ca84ceca4b PHP-CS-Fixer run 2022-08-15 08:16:03 +02:00
2face44d98 Merge branch '2fa-channels-email-sms' of https://github.com/acordeddu/yii2-usuario into acordeddu-2fa-channels-email-sms 2022-08-12 09:46:32 +02:00
902970c718 #458 fix on email subject message and on send sms 2022-08-11 12:15:53 +02:00
368563dcc0 Phpstan fix (#465)
phpstan level 2: services and i18n
2022-08-11 10:27:04 +02:00
7147236e68 Merge branch 'master' into master 2022-08-11 09:53:06 +02:00
ad3b629ee7 Merge branch 'master' into static-code-analyzer 2022-08-11 09:50:37 +02:00
c83692f277 Update PHP-CS-Fixer to v3.x (#460) 2022-08-11 09:47:33 +02:00
6da8e26509 Merge branch 'session-histroy' of https://github.com/maranqz/yii2-usuario 2022-08-11 09:08:25 +02:00
c856eded75 phpstan: remove <php7.4 from build grid (v1.6) 2022-08-10 17:12:10 +03:00
fa17922914 phpstan: missing declared return 2022-08-10 16:58:13 +03:00
3e33813fd5 phpstan: missing service returns 2022-08-10 16:48:03 +03:00
52f81d431e PR #458 - code improvement required by @maxxer 2022-08-09 16:56:54 +02:00
97a2de2f48 PR #458 - fix and improvement required by @mp1509 2022-08-09 12:21:34 +02:00
91d110e1e7 2fa by email and by sms 2022-07-13 10:37:15 +02:00
ec61f5c9ed Merge remote-tracking branch 'upstream/master' 2022-03-09 10:40:56 +00:00
422a17d8dc Use GitHub actions (#447)
* init github actions

* init github actions: test run on feature branch

* github actions: remove alternative mysql port

* github actions: expose mysql port

* github actions: install & try migrations

* github actions: adjust test db configuration for github actions

* github actions: run tests

* github actions: fix codeception db connection add actions badge

* github actions: try only php8

* github actions: add php 7.4

* github actions: dont fail fast

* github actions: save test-outputs as artifacts

* github actions: save test-outputs only on fail

* github actions: save runtime folder in artifacts on failed build

* github actions: save runtime folder in artifacts on failed build

* github actions: save error  logs for tests

* github actions: log error if unable to send email on new user creation

* github actions: change log conf

* github actions: add tests yii2:transaction=false to pass tests on php < 8

* github actions: add tests yii2:transaction=false to pass tests on php < 8

* github actions: remove travis

* github actions: add changelog
2022-02-17 13:45:34 +01:00
43fd2fdc34 Added minimum password requirements 2022-01-10 12:34:57 +01:00
078ee0d956 FIX allow password_changed_at to be saved (#433) 2021-09-13 22:35:41 +02:00
8505327f21 Always create flash messages, allow enableFlashMessages only to dictate display
Fixed inconsistent handling of flash messages and the `enableFlashMessages` config setting (#391)
2021-02-02 17:14:14 +00:00
b7d2cf42ac Fix:
1. Documentation;
2. Actions access in AdminController and SettingController by enableSessionHistory;
3. Add "visible" menu parameter by enableSessionHistory;
4. Add blank line in end of file.
2019-11-30 17:52:24 +03:00
be2b495c9e Add session history 2019-11-14 20:55:18 +03:00
3424320684 optimize imports 2019-06-30 02:01:25 +02:00
35fda70e14 optimize imports 2019-06-29 13:31:10 +02:00
8c551d9030 Close #269 added help for console commands + php-cs-fixer 2019-06-29 08:32:35 +02:00
dd407f50b4 re #309 remove the creation of a user on social auth and force creation of account through RegistrationController 2019-06-17 17:35:22 +02:00
8a708839c0 Fix password expire service #293 2018-12-31 11:30:22 +01:00
adf9321db8 Always show a feedback when recovering password (#249)
Even if email doesn't exist
2018-10-23 12:10:33 +02:00
2cf884ac96 fix unpassable condition in EmailChangeService 2018-08-20 17:36:45 +02:00
7a571f4800 UserCreateService: check if we're from web before setting flash message #195
Also return an error message to console if mail send failed
2018-07-13 18:36:04 +02:00
71f9587374 Add last-login-ip capture capability (#184) 2018-05-16 15:29:08 +02:00
051e2fe8a8 Merge pull request #146 from ajmedway/patch-1
Bugfix for Model events UserEvent::EVENT_BEFORE_CREATE and UserEvent:…
2018-02-09 12:40:38 +01:00
fa3d7075cf Merge pull request #147 from ajmedway/patch-2
Bugfix for Model events UserEvent::EVENT_BEFORE_CONFIRMATION and Use…
2018-02-09 12:40:24 +01:00
b8233114f8 Added use MailAwareTrait; 2018-02-09 09:34:01 +00:00
53209d2d78 Honor enableFlashMessages config param in PasswordRecoveryService #110 2018-02-09 08:45:39 +01:00
4341d2173b Bugfix for Model events UserEvent::EVENT_BEFORE_CONFIRMATION and UserEvent::EVENT_AFTER_CONFIRMATION
Bugfix for Model events UserEvent::EVENT_BEFORE_CREATE and UserEvent:…  …
…:EVENT_AFTER_CREATE

Feed instance of Da\User\Event\UserEvent to resolve error in event handlers:

TypeError
Argument 1 passed to {closure}() must be an instance of Da\User\Event\UserEvent, instance of yii\base\Event given
2018-02-08 17:17:16 +00:00
5f77b24254 Bugfix for Model events UserEvent::EVENT_BEFORE_CREATE and UserEvent::EVENT_AFTER_CREATE
Feed instance of Da\User\Event\UserEvent to resolve error in event handlers:

TypeError
Argument 1 passed to {closure}() must be an instance of Da\User\Event\UserEvent, instance of yii\base\Event given
2018-02-08 17:11:32 +00:00