373 Commits

Author SHA1 Message Date
elweyn
c7f0e2440b Change so that the new entity is recognized by the queryRunner. 2021-11-04 13:50:09 +01:00
elweyn
8bfc538824 Added random-bigint library for verificationCode, store EmailOptIn data in DB. 2021-11-04 12:57:28 +01:00
elweyn
137d683351 Update and adding some packages.updated: typeorm, imported: sodium-native, node-gyp-build & module-alias. 2021-11-04 12:20:09 +01:00
elweyn
dcdcb1c977 Added rollback of auto increment index for state_users, login_users & login_user_backups 2021-11-04 12:17:30 +01:00
elweyn
1142f7359a Change the commit strategy so that the query runner store the commits and roll them back if their is an error. 2021-11-04 10:50:47 +01:00
2bd63985b2
externalize login server secrets, now configurable 2021-11-04 02:18:19 +01:00
ab64185275
test results 2021-11-03 21:36:47 +01:00
3fcedaec41
encrypt private key 2021-11-03 20:52:30 +01:00
elweyn
f7f0d98219 Optimise code, withdrew loop and integrated the logic in the second loop. 2021-11-03 09:41:57 +01:00
02ce432dc5
lint, removed console, removed todo 2021-11-03 05:08:05 +01:00
86fbe1d11c
generate email hash 2021-11-03 04:59:25 +01:00
8ed4ade3fe
finished todo 2021-11-03 04:44:42 +01:00
2381c3dd7a
generate password hash 2021-11-03 04:39:57 +01:00
30455fd220
missing todo 2021-11-03 03:08:53 +01:00
ff0388c82c
typo 2021-11-03 02:57:25 +01:00
d4e0815d00
cleaned the whole thing 2021-11-03 02:51:34 +01:00
5736d3ba0b
removed bigint-conversion,
fixed keygeneration to be aligned 100% with login_server
trailing space on passphrase
bigint to hash conversion
2021-11-03 02:08:10 +01:00
2473f450c3
- require sodium because else problems occur
- fix key generation
2021-11-03 00:51:55 +01:00
c6af40d1bd
we connot use those types, they are wrong 2021-11-03 00:51:26 +01:00
7a36d97835
lint fixes,
disabled console lint, removed email todo since its logged - should be adequat
2021-11-02 21:17:00 +01:00
elweyn
5220874a07 Setup LoginUserBackupRepository. 2021-11-02 17:27:09 +01:00
elweyn
d286d68730 Create the LoginUserRepository. 2021-11-02 17:24:45 +01:00
elweyn
20c440c258 Changed the save methods used on entities to repository save entity methods. 2021-11-02 17:21:57 +01:00
22bdcae05b
proper encoding for the German special characters (was windows encoding, now is utf8) 2021-11-01 00:54:12 +01:00
2a764eef3b
optimization: additional check for passphrase to actually have enought words, various other stuff 2021-11-01 00:16:40 +01:00
d4dd8e5e21
optimization: always save passphrase 2021-11-01 00:12:09 +01:00
c4df818456
optimization: dont assign unused variable 2021-11-01 00:10:39 +01:00
c2ffc9b5f4
todo 2021-11-01 00:10:02 +01:00
d642bff683
optimization: save private key always 2021-11-01 00:08:53 +01:00
6dfb671b14
different mnemonic word lists. It is unclear which to use for what. 2021-11-01 00:05:51 +01:00
a9e16708a4
implemented:
- PassphraseGenerate
- KeyPairEd25519Create
- generateKeys
for createUser in order to generate the privateKeys
(unoptimized)
2021-10-31 23:59:39 +01:00
c489921313
- removed libsodium-wrappers and installed sodium-native since we need the esoteric functions aswell
- added conversion library from bigint to buffer
2021-10-31 23:55:33 +01:00
77d89d55db
implemented create user in apollo
- Pubkey generation still missing
2021-10-31 04:59:07 +01:00
472391a8d2
corrected typescript type (not graphql) 2021-10-31 02:13:29 +01:00
9540ab3208
reduced checkUsername response to a boolean 2021-10-31 02:01:02 +01:00
973fad7ea9
cleaned graphql checkUsername Response 2021-10-31 02:01:02 +01:00
d1ae8a9537
cleaned graphql checkUsername Args 2021-10-31 02:01:02 +01:00
af2a77c30f
implemented checkUsername resolver 2021-10-31 02:01:02 +01:00
7729f44ba1
updated backend required database version 2021-10-21 05:13:45 +02:00
Moriz Wahl
ae5b37d94d
Merge pull request #1021 from gradido/fix-decay-ceil
fix: Decay Rounded to Ceil
2021-10-20 20:21:09 +02:00
8578ca9e51
also build database in dev mode 2021-10-20 00:26:00 +02:00
Moriz Wahl
cffadab4af fix: Decay Rounded to Ceil 2021-10-18 21:50:42 +02:00
Moriz Wahl
d6279370fd try to get things working. Backend does not find database build 2021-10-18 21:07:52 +02:00
d8e3db5b0f
properly bind database volumes, make database directories in container and copy required node_modules folders for production 2021-10-18 15:39:43 +02:00
b68ab27ed1
aligned typeorm versions of backend and database 2021-10-18 15:39:43 +02:00
f59bbef4de
more error logging for debugging purposes 2021-10-18 15:39:43 +02:00
3c0c4a4a5d
errors on failed connection to help debugging, entities from database project in typeorm connection 2021-10-18 15:39:43 +02:00
fea73e9769
do not define the default baseUrl explicitly 2021-10-18 15:39:43 +02:00
3505825d88
better comments in docker file 2021-10-18 15:39:43 +02:00
a883a435ec
remove sudo 2021-10-18 15:39:43 +02:00