76 Commits

Author SHA1 Message Date
Alexandre BODIN
aaeb988a0b
Expand nx usage and migrate logger to ts (#15957) 2023-03-22 11:21:33 +01:00
Ben Irvin
801e3db415 add traverse query
fix single type

fix query

sanitize pagination count params

add comments

Cleanup the params/filters sanitize helpers

sanitize association resolver

Sanitize sort

fix graphql single type

fix graphql types

fix addFindQuery

Sanitize fields

Update sanitize sort to handle all the different formats

Update fields sanitize to handle regular strings & wildcard

Fix non scalar recursion

Add a traverse factory

Add visitor to remove dz & morph relations

Replace the old traverse utils (sort, filters) by one created using the traverse factory

add sanitize populate

await args

fix async and duplicate sanitization

sanitize u&p params

Add traverse fields

Fix traverse & sanitize fields

add traverse fields to nested populate

sanitize admin api filter queries

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

sanitize sort params in admin API

todo

make token fields unsearchable with _q

sanitize delete mutation

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

fix errors on queries without ctx

rename findParams to sanitizedParams

Sanitize queries everywhere in the content manager admin controllers

sanitize single type update and delete

Ignore non attribute keys in the sanitize sort

Fix the sanitize query sort for nested string sort

Fix permission check for the admin

typo

sanitize upload

sanitize admin media library

sanitize admin users

Add missing await

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

set U&P users fields to searchable:false

add token support to createContentAPIRequest

add searchable:false to getstarted U&P schema

remove comment

sanitize component resolver

remove await

add searchable false to the file's folder path

Fix admin query when the permission query is set to null

add basic tests for filtering private params

add tests for fields

add pagination tests

Fix admin user fields not being sanitized

Fix convert query params for the morph fragment on undefined value

Traverse dynamic zone on nested populate

Handle nested sort, filters & fields in populate queries + handle populate fragment for morphTo relations

Sanitize 'on' subpopulate

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

don't throw error on invalid attributes

check models for snake case column name instead of assuming they are operators

Add first batch of api tests for params sanitize

Fix sort traversal: handle object arrays

Put back removePassword for fields,sort,filters

Add schemas and fixtures for sanitize api tests

Add tests for relations (sanitize api tests)

Move constant to domain scope

Rename sanitize params to sanitize query

Fix typo

Cleanup fixtures file

Fix variable name conflict

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>

Update comment for array filters

Rename sanitize test

Test implicit & explicit array operator for filter

Remove unused code
2023-03-15 14:59:19 +01:00
Convly
56aa69f472 Use lodash fp instead of lodash 2023-01-10 10:34:49 +01:00
Convly
403a1fe81b Update email template validation & tests 2022-12-30 19:00:19 +01:00
Alexandre Bodin
3ef2eabdad Fix validation on user update 2022-11-09 19:10:41 +01:00
Pierre Noël
93d030df8b update permissions plugin role validation (done by @Marc-Roig) 2022-10-06 11:15:07 +02:00
Alexandre Bodin
e57f02d2d9 Fix eslint in plugins folder 2022-09-05 15:18:24 +02:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Alexandre Bodin
0ae14c06cb 1st fix pass 2022-08-11 10:20:48 +02:00
Alexandre Bodin
dd357e63e6 Put missing code back 2022-08-11 10:04:46 +02:00
Alexandre Bodin
a25a65918c Move to Post and cleanup validation 2022-08-03 16:46:41 +02:00
Alexandre Bodin
fbc7e882f4 Apply feedback and finish some tasks 2022-08-02 20:58:37 +02:00
Alexandre Bodin
85b3e7de32 Merge branch 'master' into feature/user-permissions-change-password 2022-08-02 20:22:13 +02:00
Convly
bdb5a3ee89 Merge branch 'releases/4.3.0' into features/typescript 2022-06-30 16:08:51 +02:00
Alexandre Bodin
f925e93db4 Complete U&P documentation 2022-06-04 09:48:31 +02:00
Alexandre Bodin
f7f9ecc898 Fix check login before checking status 2022-06-01 20:35:43 +02:00
Alexandre Bodin
bb5500fe0b Remove console.log 2022-06-01 20:13:57 +02:00
Alexandre Bodin
64852e9cda Allow query params for /me 2022-06-01 19:11:18 +02:00
Alexandre Bodin
291e2b6835 Cleanup email confirmation api 2022-06-01 17:59:30 +02:00
Alexandre Bodin
e42e6444d7 Refactor providers and cleanup auth code 2022-06-01 16:22:19 +02:00
Alexandre Bodin
9c81bcaacb Fix username vs email registration and login issues 2022-05-31 19:38:08 +02:00
Alexandre Bodin
4f02ba6b74 wip 2022-05-31 14:06:58 +02:00
Convly
66e3aa5dcb Merge branch 'master' into features/typescript 2022-05-24 08:02:38 +02:00
Alexandre BODIN
23083223e4
Merge pull request #12196 from kayac-chang/fix/handle-update-error-if-user-not-found
fix: handle user not found error
2022-05-19 22:59:31 +02:00
Alexandre Bodin
810fc0a857 Merge branch 'master' into fix/handle-update-error-if-user-not-found 2022-05-19 22:03:36 +02:00
Alexandre Bodin
aac0e2b465 Merge branch 'master' of github.com:strapi/strapi into fix/mime-type-migration 2022-05-14 09:00:44 +02:00
Sergey
6e7b77c9e2 fix: userService.fetch applies id only and should be replaced by fetchAll 2022-05-11 21:31:11 +02:00
Kim, Harim
e0191544e5
Merge branch 'strapi:master' into fix/populate-user 2022-04-20 21:50:33 +09:00
Kai-Siang Wang
95879d9c17 feat: upgrade purest package to v4 2022-03-30 13:57:49 +08:00
Pierre Noël
6df5d8d11f
Merge pull request #12771 from marlonbaeten/master
Add SERVER_URL variable to user e-mail templates
2022-03-21 14:44:59 +01:00
Marlon Baeten
03028a763f Added ADMIN_URL to email templates 2022-03-21 11:04:54 +01:00
WalkingPizza
c0a7ff801b Allow users to change own password 2022-03-20 19:50:08 +01:00
Marlon
dbc8aae306
Fix getAbsoluteServerUrl import in auth.js 2022-03-14 10:09:49 +01:00
Mark Kaylor
a58c2bc035 Merge branch 'master' of github.com:strapi/strapi into strapi-market-release 2022-03-11 11:08:17 +01:00
Kevin Antonio Rateni Iatauro
ba73a398dd
Removed user not found error 2022-03-10 17:51:47 +01:00
Kevin Antonio Rateni Iatauro
39db68bcbf
Merge branch 'strapi:master' into fix/up-email-confirmation-user-not-found 2022-03-10 11:39:47 +01:00
Marlon Baeten
2e7acfce8d Added SERVER_URL to allowed template variables 2022-03-07 16:15:48 +01:00
Marlon Baeten
1028fefb7f Add SERVER_URL variable to user e-mail templates 2022-03-07 16:08:47 +01:00
harimkims
683f0484f1 Fix wrong input parameter in user update controller 2022-03-03 23:59:32 +09:00
harimkims
183bad03d3 Replace fetch, fetchAll query with entityService 2022-03-03 22:56:58 +09:00
harimkims
567816591a Rename getRoles, getRole to find, findOne 2022-03-03 22:55:29 +09:00
Kim, Harim
2b877b3a55
Merge branch 'strapi:master' into fix/populate-user 2022-03-02 15:14:43 +09:00
thomas-br
c85208bf97 Merge branch 'patch-1' of github.com:thomas-br/strapi into patch-1 2022-01-29 22:33:34 +01:00
thomas-br
e602d645be correcting entity update 2022-01-29 22:16:18 +01:00
WalkingPizza
a49141679c Handle user not found error in email confirmation 2022-01-28 22:03:23 +01:00
Pierre Noël
e230827335 fix dynamic callback 2022-01-19 17:12:59 +01:00
kayac-chang
04d8de7c38 fix: handle user not found error 2022-01-14 14:34:17 +08:00
Kim, Harim
0fd0f57126
Fix Update user does not update component attribute (#11871)
* use entityService to update user instead of old query, add update test

Signed-off-by: harimkims <harimkims@gmail.com>

* fix e2e test

* Add component update test

* Remove console.log

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2022-01-05 15:54:58 +01:00
harimkims
54d10ec83c Fix e2e test 2021-12-21 11:24:39 +09:00
harimkims
5ba0d2d657 Fix unable to populate user
Signed-off-by: harimkims <harimkims@gmail.com>
2021-12-21 10:43:36 +09:00