813 Commits

Author SHA1 Message Date
dbfe882c14
implemented isAdmin from backend 2021-11-20 17:19:58 +01:00
a6e4e84c9b
do not generate a password for a user, but change the process to set the password later. 2021-11-19 01:51:13 +01:00
f6f6314eb1
save price as integer 2021-11-19 01:22:24 +01:00
ad82cda489
remove unused fields comments to reduce file lengrh 2021-11-19 01:12:01 +01:00
a44a3ee6d0
make language an optional parameter for createUser and do not set it on the elopage webhook 2021-11-19 01:08:53 +01:00
2aba37e60c
replace map with foreach since we don't need a return - thanks moriz 2021-11-19 01:00:55 +01:00
elweyn
d8def24e0c Their was an error in the UserResolver due to a check undefined and false would fall out of the update change it to !== undefined. 2021-11-18 10:28:54 +01:00
5335d12802
catch error on createUser and log them 2021-11-17 19:37:35 +01:00
68fc7bab1b
Merge branch 'master' into login_call_updateUserInfos 2021-11-17 17:02:35 +01:00
87606d8b2e
Merge branch 'master' into login_hook_elopage 2021-11-17 17:02:17 +01:00
52b6026ed8
missing .env.dist value 2021-11-17 16:58:04 +01:00
e68f22ade0
implement the webhook 2021-11-17 16:57:04 +01:00
33670f1575
WEBHOOK_ELOPAGE_SECRET 2021-11-17 16:56:32 +01:00
f362032b38
add body parser 2021-11-17 16:56:13 +01:00
Moriz Wahl
be937680cc Merge branch 'master' into await-backaned-tests 2021-11-17 13:33:18 +01:00
415b9254e4
Merge branch 'login_call_getUserInfos' into login_call_updateUserInfos
# Conflicts:
#	backend/src/graphql/resolver/TransactionResolver.ts
2021-11-17 00:50:18 +01:00
f09c3b4964
replace implementation of getPublicKey to no longer require the sessionId. Furthermore the call now no longer calls getUserInfos on the login_server but just queries the database itself 2021-11-17 00:40:16 +01:00
540cbd0e1f
reimplement publisherId on updateUserInfos 2021-11-17 00:20:43 +01:00
4fccc19b68
missing import 2021-11-17 00:13:44 +01:00
f0bfe7a7a1
Merge branch 'apollo_jwt_withdrawSessionId' into login_call_updateUserInfos 2021-11-17 00:12:12 +01:00
c9f167d07b
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
2021-11-17 00:10:16 +01:00
eb06b9a528
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
2021-11-17 00:09:30 +01:00
1f5c740359
Merge branch 'master' into apollo_jwt_withdrawSessionId 2021-11-17 00:06:09 +01:00
elweyn
cbc6570d65 Encode doesn't need sessionId anymore. 2021-11-11 12:32:37 +01:00
elweyn
e76646b327 Withdrew the sessionId from the JWT. 2021-11-11 12:10:14 +01:00
elweyn
a73a36b971 Withdrew the JWT changes and store the Buffer again instead of the hex key. 2021-11-11 10:09:08 +01:00
elweyn
e97798d73c Withdrew comments. 2021-11-11 06:42:27 +01:00
elweyn
e976c6854d Adding hasElopage and publisherId logic, hasElopage is called and checks if in ElopageBuys their is a user with this email, if hasElopage and publisherId is filled store it in the user table. 2021-11-11 06:41:56 +01:00
elweyn
1baf756c08 HasElopage has been called, search loginUser catch instead of if no user, context get's the pubKey at the end of the login call instead of the start. 2021-11-11 06:31:00 +01:00
elweyn
7655a647fe Implementation of the LoginElopageBuys repository. 2021-11-11 06:15:21 +01:00
elweyn
3b79bae488 Merge branch 'master' into login_call_unsecureLogin 2021-11-11 06:06:27 +01:00
d7c5154912
removed unused context
corrected comment
removed unused code-comment
2021-11-11 00:30:00 +01:00
e896759e1e
"implemented" logout call 2021-11-11 00:14:03 +01:00
61786d9e5d
another (unrelated) lint fix 2021-11-10 23:52:44 +01:00
dc8091b60b
lint fix 2021-11-10 23:50:58 +01:00
8b0c1feb3e
change password and reencrypt private key when doing so. 2021-11-10 23:47:37 +01:00
7205eb2fae
transaction for coinanimation 2021-11-10 20:34:14 +01:00
f797017c9a
have language check for changing language 2021-11-10 20:23:47 +01:00
4ffa2b4ee1
we will not implement disable here - it does not make sense that an user disables himself 2021-11-10 20:18:49 +01:00
fe7d7dc5f8
implemented most of updateUserInfos on Apollo
also removed publisherId from updateUserInfos since this is now part of the login call.
2021-11-10 20:18:49 +01:00
1865e42f83
just some cleanups, mostly to trigger another build 2021-11-10 18:20:47 +01:00
248622f3be
hasElopage is now implemented on apollo
- requires authorization now
2021-11-10 18:20:47 +01:00
elweyn
5d886a9360 LoginUserRepository import has droped out put it in again. 2021-11-10 11:28:35 +01:00
elweyn
fabcbca5a5 Merge master in this branch. 2021-11-10 10:38:15 +01:00
elweyn
6a85017406 PubKey decoded has to be cast to buffer and back to hex string, changed the coinanimation. 2021-11-10 10:30:35 +01:00
elweyn
a16b7ad47a Changed the decode of context.pubKey so that it is stored in a buffer and transformed after in a Hex string. 2021-11-10 10:28:31 +01:00
elweyn
74cc9522c2 Added method to find User with their email & find User with a PubKey Buffer. 2021-11-10 10:27:05 +01:00
elweyn
30ef78ddde Withdrew sessionId from the jwt token. 2021-11-10 10:25:41 +01:00
elweyn
75d7ff3905 Withdrew the comments. 2021-11-10 06:15:58 +01:00
elweyn
4af3c6ed8c Filling the returned model so that we get the same result as before. 2021-11-10 06:14:38 +01:00