14807 Commits

Author SHA1 Message Date
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
fb58de9814 Cleanup strapi-admin services & domain
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:37:20 +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
soupette
517f03d1b4 Upgrade Buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:49 +02:00
soupette
20ad4477a1 Upgrade buffet.js
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:46 +02:00
soupette
98d898855e Fix search
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:44 +02:00
soupette
9b9ee09b43 Created table component
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:42 +02:00
soupette
525a02c58c Created user list
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:40 +02:00
soupette
4ff3f29287 Remove use of Padded component in favor of BaselineAlignment
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:38 +02:00
soupette
0124a2d6cb Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:36 +02:00
soupette
f6f7603361 Add Oops page
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:34 +02:00
soupette
75ef4984ba Remove checkTokenValidity form request util
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:31 +02:00
soupette
9dd5ecf78d Add renew token and fix design
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:30 +02:00
soupette
cc7db47a58 Enable login
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:32:23 +02:00
soupette
306997c36c Fix trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:28:21 +02:00
soupette
b297c0a16e Update trads
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:26:54 +02:00
soupette
d62b00354b Improve HeaderSearch component
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:25:18 +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
07f716cee8 Cleanup code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:48 +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
58b56d3c97 Add uni test
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:24:45 +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
soupette
7c305e3e8c Add tests
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:23:16 +02:00
soupette
dc50c8c9b9 Fix select alignment
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:23:14 +02:00
soupette
98e41c635c Fix select error style
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:23:12 +02:00
soupette
2577eeedd3 Created MagicLink component
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:23:09 +02:00
HichamELBSI
726b8d23ef Upgrade buffet to 3.1.1-next.1
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
2020-07-08 10:23:04 +02:00
Alexandre Bodin
919aae2211 Fix unit tests
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 10:21:28 +02:00
Convly
87a50a0231 Use directly getModel instead of fetching all the models
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:26 +02:00
Convly
8a69d187d0 Update models attributes & get models from the database manager
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:24 +02:00
Convly
f10f51f372 Add unique constraint for admin::role::name
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:22 +02:00
Convly
005df139c8 Remove minLength from firstname, lastname & username on admin::User
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:20 +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
Convly
1f3506710d Handle special scenarios where pluginName === 'admin' when retrieving models
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:16 +02:00
Convly
45638dd97b Rename admin::administrator model to admin::user & add strapi_role model
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:21:14 +02:00
soupette
01192500c6 Created select roles component. Add error logic
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:21:12 +02:00
soupette
4057c6622b Add validations and fix focus
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 10:21:06 +02:00
soupette
0d4746219a Add immer
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:47:08 +02:00
soupette
66132f30f1 Use compos from buffet
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:41 +02:00
soupette
8015e17b0b Created form layout
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:39 +02:00
soupette
3e33790125 Created ModalHeader component in helper and use it in upload plugin
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:37 +02:00
soupette
94008d0bb4 Created user list view layout
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:35 +02:00
soupette
62a79a5fc0 Created basic routing for the settings
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-07-08 09:45:28 +02:00
cyril lopez
b03cb74832
Merge pull request #6906 from strapi/fix/media-lib-modal-selected
Fix selected files for the media lib modal
2020-07-07 15:48:48 +02:00