Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Release v2.5.0 #1222

Merged
merged 16 commits into from
Aug 27, 2019
Merged

Release v2.5.0 #1222

merged 16 commits into from
Aug 27, 2019

Conversation

rijkvanzanten
Copy link
Member

No description provided.

binal-7span and others added 16 commits August 8, 2019 16:37
* Parent + Nested validation changes (#1138)

* Add migration schema for 2FA Secret user field

* Add 2fa_secret field to FieldsSeeder

* Create Missing 2FA Password Exception

* Add googleauthenticator dependency

* Add getter for User's 2FA secret

* Check for otp param in login request, and login with it

* Add enforce_2fa parameter to directus_settings

* Create Utils endpoint and service method to generate 2fa secret

* Add enforce_2fa field to roles

* Add enforce_2fa field to FieldsSeeder

* Change Missing2FAPasswordException error code to 111

* Change 2FA Library

* Change 2fa_secret interface in FieldsSeeder

* Created exception for invalid otp

* Changed findUserWithCredentials to through an InvalidOTPException on otp check

* Created new exception if 2fa is enforced but not enabled by user

* Added function to check if 2fa is enforced for a user

* Check in AuthenticationMiddleware whether 2fa is enforced and enabled for user

* Add optional needs2FA field to auth token and on token refresh

* Catch error if enforce_2fa column doesn't exist
Fixes crash when has2FAEnforced is called on a DB that hasn't been migrated

* Use relative positions for target path array to check user edit

* Fix unset on payload_arr instead of payload

* Change 2FA activation on login to use activate2FA endpoint

* Update ItemsService.php
* Issue Fix #1194

* Update comment
There are cases when $type is not a string but an object that inherits from ObjectType.
In that situation array_key_exists failing because it should get only integers or strings 
as a first parameter. So in order to avoid that the 'name' property of the object is used 
as a key.
Adds in detection and parsing for youtu.be shorthand URLs.
* added file meta data for audio/video

* updates as per PR feedback
@rijkvanzanten rijkvanzanten merged commit c698bf5 into master Aug 27, 2019
@rijkvanzanten rijkvanzanten deleted the release-v2.5.0 branch August 27, 2019 21:38
samvasko pushed a commit to samvasko/api that referenced this pull request Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants