55 Commits

Author SHA1 Message Date
Jean-Sébastien Herbaux
b2b4515d9b
Fix D&P population (#8249)
* Fix D&P population (gql, rest)

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix units tests

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>

* Fix mongoose filtering on non draft & publish model

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>

Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-08 20:54:48 +02:00
Convly
e63306b559 Rewrote users-permissions's controller to fit with rbac, fix various bugs in content-manager's controllers
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Drew Town
549803adfc
Sanitize user object in user plugin update method return value (#6003)
* Sanitize user object in update method return value

Signed-off-by: Drew Town <drew.town+github@gmail.com>

* Sanitize returned user data on create and destroy
2020-05-25 17:39:33 +02:00
Walter Cossu
c01bda9fff added user count
Signed-off-by: Walter Cossu <walter.cossu@realt.it>
2020-04-17 18:00:03 +02:00
Pierre Noël
b5ec9cb1c8 handle unexpected params from koa-router
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>

Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-06 19:16:51 +01:00
Jim LAURIE
d4432d1627 fix: update user loggedin via provider
Apply the password not null validation only if the provider is local.
With that provider users not require a password on profile update.

fix #2963
2019-12-28 16:42:53 +01:00
Jonathan Tey
b35409cf5e
Fix spelling Eamil -> Email 2019-10-17 18:01:09 +08:00
KalanyuZ
edbff44c82 Add GraphQL register/login (#3879)
* Add GraphQL login

* Add GraphQL register

* Add graphql login/register/delete End2End test

* Update from requests

* Remove logging

* Update to beta.16

* Update

* Add error handling

* Util function

* Update
2019-10-15 17:17:54 +02:00
Alexandre Bodin
bf7870de3b Merge branch 'master' of github.com:strapi/strapi into chore/routing-x-forwarded 2019-09-18 17:29:09 +02:00
Alexandre Bodin
c9a3bfc763 Clean code styling 2019-09-18 13:26:56 +02:00
Alexandre Bodin
6c2d413ba0 Fix user-permissions graphql permissions and update user 2019-09-18 12:07:45 +02:00
Alexandre Bodin
6ec284180a sanitize user model data 2019-09-12 10:50:52 +02:00
Alexandre Bodin
a22f2cefef Remove x-forwarded-host.
- set security defaults for development mode that are standard
- refactor error messages to work without ctx.request.admin
- remove mask middleware and add a sanitization layer to the core-api to
hide private fileds
2019-09-06 14:33:24 +02:00
Alexandre Bodin
e4c7a699fb Add image upload in routing policy of the content manager 2019-08-05 10:31:18 +02:00
Alexandre Bodin
56c59c5ae1 Implement deleteMany in query.delete 2019-07-16 20:11:34 +02:00
Alexandre Bodin
ed6d35d51d Implement delete user 2019-07-16 17:23:40 +02:00
Alexandre Bodin
3e53d7c8c2 Fix user update and boolean values in DB 2019-07-16 17:23:39 +02:00
Alexandre Bodin
c4b7ae55e6 Fix username unique in users-permissions plugin and implement sql db unique option 2019-07-16 17:23:39 +02:00
Alexandre Bodin
1658b48aa0 Refactor users-permissions to use the new strapi.query 2019-07-16 17:23:38 +02:00
Alexandre Bodin
0b4096a045 Add _q param to GET /users 2019-05-23 10:18:44 +02:00
Alexandre Bodin
a41641bfe4 Add a queries interface to the plugins 2019-04-26 13:40:23 +02:00
Kamal Bennani
17d8eb36c0 Adapt User plugin to the new API 2019-03-21 09:06:06 +01:00
Jim LAURIE
f90255bb75
Merge branch 'master' into issue/2327 2019-01-22 13:52:13 +01:00
Jim LAURIE
b4968697a0 Fix update user email 2019-01-22 11:41:49 +01:00
David Baxter
c01124388d
Incorrect params variable name in user update 2019-01-16 14:39:24 +11:00
Aurélien Georget
e1ce257d2f Revert codebase and apply limit, skip, start and sort parameters 2018-12-06 18:11:53 +01:00
Aurélien Georget
540e1bccf8 Allow private attribute into input definition 2018-11-27 14:59:28 +01:00
Aurélien Georget
9e0faf9b5c Fix deleteUser mutation for Mongoose and Bookshelf 2018-11-27 14:54:34 +01:00
entwicklerfr
dfca24c908 FIX Creating a user in AdminUI does not properly set provider type to local 2018-10-28 00:47:09 +02:00
Jim Laurie
4d47d65c6d Fix default role provider and create user fix #1212 2018-06-12 19:19:10 +02:00
soupette
e7357e025c Handle delete many with models from users-permissions 2018-06-06 16:20:52 +02:00
soupette
68504fbe16 Add eslint to users-permissions backend 2018-04-30 18:26:56 +02:00
soupette
6b3e3d472f Improve errors notifications 2018-04-24 11:45:09 +02:00
Aurélien GEORGET
11c68bebf2
Update User.js 2018-03-19 17:31:04 +01:00
Jim Laurie
cf029dac07 Create db entry on upload and get uploads 2018-02-19 15:41:26 +01:00
Jim Laurie
957e7a08cb Environment agnostic for users-permissions configs 2018-02-13 15:04:21 +01:00
Jim Laurie
5bf1e51422 Fix conflicts 2018-02-12 13:25:43 +01:00
Jim Laurie
244b280919 New format store constructor
strapi.store(source).get(params)
strapi.store(source).set({params, value})

Co-authored-by: Aurelsicoko <aurelsicoko@gmail.com>
2018-02-06 13:10:43 +01:00
Jim Laurie
a8c59f999a Fix user update via API and content-type-builder 2018-02-02 12:59:34 +01:00
Jim Laurie
29af75cc51 Use database config for users-permissions plugin
Delete advanced, grant and email json files
Update setter to update data
2018-02-01 18:12:38 +01:00
Jim Laurie
7c16f512e6 Fix unique email for user API 2018-01-26 09:37:24 +01:00
Jim Laurie
6ae2f6dfee Add unique email verification on user update 2018-01-18 14:10:26 +01:00
cyril lopez
2af14f24c5 Throw error when trying to get /user/me with no headers 2018-01-11 16:24:16 +01:00
Luca Perret
5035170424 feat(plugin-users-permissions): add /user/me to fetch authenticated user model 2018-01-10 20:29:34 +01:00
Luca Perret
d877440862 typo(plugin-users-permissions): useless curly brace 2018-01-10 20:28:05 +01:00
Jim Laurie
4cb88af247 Fix PR feedback 2017-12-15 14:22:11 +01:00
Jim Laurie
b5c813e5f8 Can not set role 0 to someone user API 2017-12-15 10:49:01 +01:00
Jim Laurie
78c2b252cd Fix find users 2017-12-14 16:29:13 +01:00
Jim Laurie
5b4f91dcff Fix some PR feedback 2017-12-07 18:16:15 +01:00
cyril lopez
ac102e88e5 Fix conflict 2017-12-06 15:15:43 +01:00