102 Commits

Author SHA1 Message Date
Alexandre Bodin
252bb3afe3 Remove email update of admin during test that break next tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:51:03 +02:00
Alexandre Bodin
851ba201ac Add /users/me routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:51:01 +02:00
Alexandre Bodin
cf4c70b01e Init routes
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:50:59 +02:00
Pierre Noël
407949a70a use findAll instead of find
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:50:51 +02:00
Pierre Noël
5a4e6c0cf5 add GET /admin/roles
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:50:48 +02:00
Convly
651d42dbea fix PR comments, move pagination logic to the database layer, handle searches
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:50:44 +02:00
Convly
c9b02b2e25 Fix response object shape for get /admin/users
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:49:26 +02:00
Convly
60b24dd3c3 Add GET /admin/users route and new pagination system
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:49:22 +02:00
Pierre Noël
81640de2e7 add base for e2e tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:46:19 +02:00
Pierre Noël
1c65d3c10a add GET /roles/:id
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:46:11 +02:00
Alexandre Bodin
9ecd81a122 Add QueryError and remove useless code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:45:05 +02:00
Alexandre Bodin
a841400f85 Add register route
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:45:03 +02:00
Alexandre Bodin
01854f431f Add registration info route
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:44:59 +02:00
Convly
bc03d60b98 Fix badRequest error shape
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:38:10 +02:00
Convly
40089ed4aa Add e2e tests, fix validation for mongoose, update services
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:38:08 +02:00
Convly
999e93db2b Fix services calls in admin/auth controller
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:38:04 +02:00
Convly
8b4db69e8c Add schema validation for POST /admin/users
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:38:02 +02:00
Convly
50b170e543 Uniformize code with rbac/login
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:37:59 +02:00
Convly
12953bd6f5 Add new POST /admin/users route (controller + related services). Update User model: remove required constraint on password field.
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:37:16 +02:00
Alexandre Bodin
e79127152f Fix missing stuff in login pr
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:25:16 +02:00
Alexandre Bodin
8ce56f3517 Fix typos
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:25:11 +02:00
Alexandre Bodin
e597bddc59 Add tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:47 +02:00
Alexandre Bodin
ddfb306b44 Add tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:43 +02:00
Alexandre Bodin
a4f294f1c4 Use passport standard error handling
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:38 +02:00
Alexandre Bodin
298dcac271 Add renew token
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:23:54 +02:00
Alexandre Bodin
ceb11379fc Add passportjs and refactor login
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:23:50 +02:00
Convly
364de7d2e8 Update admin::administrator queries to match its new name
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:18 +02:00
Alexandre BODIN
f32bc7b30b
Merge pull request #5655 from ScottAgirs/patch---adjust-naming-to-password-mutations
Fix #5653: improve UserPermissions - password mutations
2020-05-25 15:44:48 +02:00
Pierre Noël
471d9ef89c move email settings from db to files
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-05-14 16:56:14 +02:00
ScottAgirs
d41227b75d Merge branch 'master' into patch---adjust-naming-to-password-mutations
Signed-off-by: ScottAgirs <scott@ijs.to>
2020-05-07 13:05:29 -04:00
Alexandre Bodin
f192d5e171 Merge branch 'master' into develop
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-07 13:14:23 +02:00
Alexandre Bodin
4d5af2c95d Make password input optional while editing
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-05 19:05:43 +02:00
Alexandre Bodin
1cb92daa77 Normalize usage of strapi.config.get
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-29 11:06:39 +02:00
Alexandre Bodin
7123f68737 Allow to create the media.update webhook + fix default width and height
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-15 19:15:21 +02:00
ScottAgirs
823acf4777 [deprecate] change-password in favour of reset-password
Signed-off-by: ScottAgirs <scott@ijs.to>
2020-04-11 13:41:09 -04:00
ScottAgirs
8e322285d6 [add] changePassword mutation
Signed-off-by: ScottAgirs <scott@ijs.to>
2020-03-31 00:55:35 -04:00
ScottAgirs
801224f2d9 [rename] changePassword > resetPassword for accuracy
Signed-off-by: ScottAgirs <scott@ijs.to>
2020-03-31 00:55:35 -04:00
Alexandre Bodin
6f2103a402 Init sender and middleware, ping
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-30 14:50:19 +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
Alexandre Bodin
daaf1392d2 Merge branch 'master' into develop 2020-01-21 11:46:04 +01:00
nurikabe
4ab268b134 RFC-822 doesn't require double quotes around the descriptive name in an email address 2020-01-18 16:39:27 -05:00
Alexandre Bodin
9d831a4bce Merge branch 'develop' into features/webhooks 2020-01-13 11:42:57 +01:00
nurikabe
3c38fc33bf Remove soft hyphen (U+00AD) from reset password email subject line 2020-01-11 11:29:24 -05:00
Alexandre Bodin
2607b38bcc Add url validation 2020-01-08 11:33:59 +01:00
Alexandre Bodin
8204d9f542 Clear webhooksMap key when no more webhooks on an event 2020-01-07 20:21:03 +01:00
Alexandre Bodin
76b0dd7385 Merge branch 'features/webhooks' into webhooks/init 2020-01-07 19:17:12 +01:00
Alexandre BODIN
3d8230d2ca
Merge branch 'master' into feature/slovak-translations 2020-01-07 14:20:38 +01:00
Alexandre Bodin
c0c191c08f chore(admin): Improve plugin name validator in install/uninstall plugin 2020-01-07 14:15:16 +01:00
jozefcipa
f6d455397f Add security consideration comment 2019-12-30 16:24:41 +01:00
Alexandre Bodin
864578a0c9 Improve validators 2019-12-24 15:01:03 +01:00