1775 Commits

Author SHA1 Message Date
Moriz Wahl
b44ef71756 no double DB calls to get user from db in resolvers 2022-03-17 10:05:07 +01:00
Moriz Wahl
fd9292b3d5 user context in admin interface 2022-03-17 09:57:19 +01:00
Moriz Wahl
ac11d1fa60 store user entity created on authentication check in context to avoid further DB calls 2022-03-17 09:55:15 +01:00
Moriz Wahl
51c06741fc get test working with chages to the schema 2022-03-17 09:06:40 +01:00
Moriz Wahl
689d6c3fb8 get transaction link id by mutation call 2022-03-17 08:58:07 +01:00
Moriz Wahl
8a350e7cab get user id by login query in seeds 2022-03-17 08:48:49 +01:00
Moriz Wahl
1182b94075 createUser returns User object, adopt mutations, reduce db calls in seed 2022-03-17 08:40:02 +01:00
Moriz Wahl
d1fe360157 Merge branch 'master' into seed-transaction-links 2022-03-16 22:10:16 +01:00
Moriz Wahl
3c04cf0621 move db call to get admin id before mutation 2022-03-16 21:18:01 +01:00
Moriz Wahl
691d734c50
Update backend/src/seeds/factory/creation.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-16 21:12:08 +01:00
Moriz Wahl
7731cb9949
Merge branch 'master' into seed-transactions-in-backend 2022-03-16 19:26:28 +01:00
elweyn
c2119aa410 Change the error message to match the behavior of the code. 2022-03-16 05:38:33 +01:00
elweyn
085e2b5021 Add method to check if OptInCode isValid. 2022-03-16 05:35:16 +01:00
elweyn
62b4e554f3 Merge branch '1319-email-optin' of https://github.com/gradido/gradido into 1319-email-optin 2022-03-16 05:30:49 +01:00
Hannes Heine
de88da40c1
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-16 05:23:10 +01:00
Hannes Heine
e9ff0a8ed1
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-16 05:22:51 +01:00
Hannes Heine
623ba8e86b
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-16 05:22:40 +01:00
elweyn
e20182bff3 Change the parseInt of CONFIG.EMAIL_CODE_VALID_TIME.toString with only the int of the config. 2022-03-16 05:21:58 +01:00
elweyn
286fad0dfe Add pipe 10 so that if EMAIL_CODE_VALID_TIME is abc we get 10. 2022-03-16 05:19:43 +01:00
Hannes Heine
e5217640e5
Merge branch 'master' into 1319-email-optin 2022-03-16 05:11:12 +01:00
Moriz Wahl
7656649253
Merge branch 'master' into seed-in-backend 2022-03-15 21:44:05 +01:00
Moriz Wahl
5b9463ca2a seed deleted and outdated transaction links 2022-03-15 21:24:44 +01:00
Moriz Wahl
12f3a7ab4a set up seed for transaction links 2022-03-15 21:03:55 +01:00
Moriz Wahl
5e8e885841 fix test 2022-03-15 20:32:33 +01:00
Moriz Wahl
a234266493 seed simple confired creations 2022-03-15 19:28:46 +01:00
Moriz Wahl
05a65aa98f add mutations from admin interface 2022-03-15 17:41:54 +01:00
Moriz Wahl
fef7c6b8cc rename userFactory 2022-03-15 17:41:22 +01:00
Moriz Wahl
7e645e08fa pass ApolloServerTestClient as first argument of factories 2022-03-15 17:40:37 +01:00
Moriz Wahl
99c0ef1cf5 add faker, seed 100 random users 2022-03-15 17:05:55 +01:00
Moriz Wahl
764f1ee572 optional data set correctly 2022-03-15 16:32:32 +01:00
Moriz Wahl
d55caacf6b seed peter lustig as admin 2022-03-15 14:57:27 +01:00
Moriz Wahl
e45e580627 setup testClient for seeding 2022-03-15 12:30:02 +01:00
Moriz Wahl
00c70311a1 use factory to create user in test, use bibi bloxberg as seeded user (no admin) 2022-03-15 11:19:19 +01:00
Moriz Wahl
004627ddcf create factory folder, move user creation in factory 2022-03-15 10:23:24 +01:00
Moriz Wahl
b30f4dfa5d copy queries and mutations from frontend and use them 2022-03-15 10:17:36 +01:00
Moriz Wahl
69dddc9ea7 add stephen hawking as disabled user 2022-03-15 09:51:09 +01:00
Moriz Wahl
455a0ab754 add user interface and standard users 2022-03-15 09:49:15 +01:00
Hannes Heine
507b9975a3
Merge branch 'master' into 1319-email-optin 2022-03-15 08:28:17 +01:00
elweyn
d4adb3b682 Revert change so that if the timeElapsed is less or equal to the max time their is no new email that is send. 2022-03-15 08:26:38 +01:00
elweyn
09c215bd50 Change Error message formating. 2022-03-15 08:19:27 +01:00
elweyn
ce0cc2c1b7 Merge branch '1319-email-optin' of https://github.com/gradido/gradido into 1319-email-optin 2022-03-15 08:16:32 +01:00
elweyn
04bb502255 Change the logic get EMAIL_CODE_VALID_TIME config 2022-03-15 08:16:27 +01:00
Alexander Friedland
1ae4aa4e85
Merge branch 'master' into 1594-Show-if-a-transaction-was-created-by-link 2022-03-14 18:06:14 +01:00
Moriz Wahl
e7b104c3b5
Update backend/src/graphql/directive/isAuthorized.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-14 16:27:36 +01:00
Moriz Wahl
fe38cec4ac further improvement of isAuthorized 2022-03-14 16:22:57 +01:00
Moriz Wahl
bc29e3d6a6 fix wrong db query in create user helper, improve isAuthorized, delete token to simulate unauthenticated 2022-03-14 16:17:11 +01:00
Hannes Heine
506df5268a
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-14 16:15:42 +01:00
Hannes Heine
5e25e5c8eb
Merge branch 'master' into 1319-email-optin 2022-03-14 16:15:14 +01:00
Hannes Heine
82e453c27b
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-14 16:14:52 +01:00
Moriz Wahl
ed84a1dd56 no resetDB and test for inalienable rights first 2022-03-14 15:35:39 +01:00