Commit Graph

70 Commits

Author SHA1 Message Date
Wenceslaus Dsilva
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
tonis ormisson
1c16ece741 fixed userBlockService controller type check to use "instanceof" to allow overridden controllers 2022-10-05 13:35:35 +03:00
MatteoF96
ced062856f Added REST admin controller 2022-09-22 16:06:44 +02:00
tonis ormisson
569b049011 implement module viewPath in all views instead of static file reference 2022-09-08 09:41:08 +03:00
Lorenzo Milesi
99271a55c3 Removed useless double string 2022-08-15 08:16:50 +02:00
Lorenzo Milesi
ca84ceca4b PHP-CS-Fixer run 2022-08-15 08:16:03 +02:00
Lorenzo Milesi
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
Antonio Cordeddu
902970c718 #458 fix on email subject message and on send sms 2022-08-11 12:15:53 +02:00
Tõnis Ormisson
368563dcc0 Phpstan fix (#465)
phpstan level 2: services and i18n
2022-08-11 10:27:04 +02:00
Lorenzo Milesi
7147236e68 Merge branch 'master' into master 2022-08-11 09:53:06 +02:00
Lorenzo Milesi
ad3b629ee7 Merge branch 'master' into static-code-analyzer 2022-08-11 09:50:37 +02:00
Lorenzo Milesi
c83692f277 Update PHP-CS-Fixer to v3.x (#460) 2022-08-11 09:47:33 +02:00
Lorenzo Milesi
6da8e26509 Merge branch 'session-histroy' of https://github.com/maranqz/yii2-usuario 2022-08-11 09:08:25 +02:00
tonis ormisson
c856eded75 phpstan: remove <php7.4 from build grid (v1.6) 2022-08-10 17:12:10 +03:00
tonis ormisson
fa17922914 phpstan: missing declared return 2022-08-10 16:58:13 +03:00
tonis ormisson
3e33813fd5 phpstan: missing service returns 2022-08-10 16:48:03 +03:00
Antonio Cordeddu
52f81d431e PR #458 - code improvement required by @maxxer 2022-08-09 16:56:54 +02:00
Antonio Cordeddu
97a2de2f48 PR #458 - fix and improvement required by @mp1509 2022-08-09 12:21:34 +02:00
Antonio Cordeddu
91d110e1e7 2fa by email and by sms 2022-07-13 10:37:15 +02:00
Alec Pritchard
ec61f5c9ed Merge remote-tracking branch 'upstream/master' 2022-03-09 10:40:56 +00:00
Tõnis Ormisson
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
MatteoF96
43fd2fdc34 Added minimum password requirements 2022-01-10 12:34:57 +01:00
p4blojf
078ee0d956 FIX allow password_changed_at to be saved (#433) 2021-09-13 22:35:41 +02:00
Alec Pritchard
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
maranqz
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
maranqz
be2b495c9e Add session history 2019-11-14 20:55:18 +03:00
Thoulah
3424320684 optimize imports 2019-06-30 02:01:25 +02:00
tonydspaniard
35fda70e14 optimize imports 2019-06-29 13:31:10 +02:00
tonydspaniard
8c551d9030 Close #269 added help for console commands + php-cs-fixer 2019-06-29 08:32:35 +02:00
tonydspaniard
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
Lorenzo Milesi
8a708839c0 Fix password expire service #293 2018-12-31 11:30:22 +01:00
bscheshirwork
adf9321db8 Always show a feedback when recovering password (#249)
Even if email doesn't exist
2018-10-23 12:10:33 +02:00
borisaeric
2cf884ac96 fix unpassable condition in EmailChangeService 2018-08-20 17:36:45 +02:00
Lorenzo Milesi
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
Kartik Visweswaran
71f9587374 Add last-login-ip capture capability (#184) 2018-05-16 15:29:08 +02:00
Antonio Ramirez
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
Antonio Ramirez
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
Alec Pritchard
b8233114f8 Added use MailAwareTrait; 2018-02-09 09:34:01 +00:00
Lorenzo Milesi
53209d2d78 Honor enableFlashMessages config param in PasswordRecoveryService #110 2018-02-09 08:45:39 +01:00
Alec Pritchard
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
Alec Pritchard
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
Lorenzo Milesi
26791a2d8d Merge remote-tracking branch 'upstream/master' into password_expiration 2018-01-30 22:16:03 +01:00
Faenir
2e3673ff07 Check is user found or not. 2017-12-11 13:15:26 +03:00
Lorenzo Milesi
3281169b86 Password expiration feature #102
It's still missing an enforcement which redirects all actions to profile
update until the password is changed
2017-11-26 20:09:09 +01:00
Antonio Ramirez
c418ad967c Close #108 phpcs fixes 2017-11-12 22:01:28 +01:00
Antonio Ramirez
190fafa5f1 re #108 use app main logger + multiple fixes 2017-11-12 21:58:48 +01:00
Kartik Visweswaran
3feae01a17 Enhancements to Mailer exception handling fixes #79 2017-10-18 18:15:15 +05:30
Antonio Ramirez
20400cf90d Close #55 add google captcha mechanism 2017-10-15 22:11:35 +02:00
Antonio Ramirez
e002109568 re #68 refactor event variable name 2017-10-15 15:47:13 +02:00
Antonio Ramirez
9607e8d775 Close #68 fix documentation + events raised on User model 2017-10-15 15:46:20 +02:00