437 Commits

Author SHA1 Message Date
Dario
3820fb947f !db Update!, add disabled field for user for disabling accounts, check field by login and don't login if user account is disabled 2020-07-16 13:19:59 +02:00
Dario
4e1b74ca9d ignore error by creating user direct, because it can be healed automaticly 2020-07-15 15:27:40 +02:00
Dario
8b8f1e84b8 get earlier code changes to work 2020-07-15 14:46:44 +02:00
Dario
da72e46a15 fix syntax error 2020-07-15 14:28:17 +02:00
Dario
1b3cd9701c try to recover priv key from user backup in SigningTransaction if private key is missing 2020-07-15 14:26:29 +02:00
Dario
15d7cf5e61 fix 2020-07-15 14:01:13 +02:00
Dario
b40d674bbb add comments in mysql handle part to find mysql errors 2020-07-15 13:53:11 +02:00
Dario
af340f95de update logging to better nail down mysql errors 2020-07-15 13:45:50 +02:00
Dario
d6a0b15720 add reporting for mysql connections, to find error with mysql querys 2020-07-15 13:11:04 +02:00
Dario
52b836a235 use new user class for check if password is empty by check email 2020-07-15 13:10:12 +02:00
Dario
48d53626c2 remove skipping CheckEmailPage by some session states, because this don't work with current register process 2020-07-15 12:18:33 +02:00
Dario
81faa98f21 add mutex for connection manager, maybe there is where the mysql error are coming from, if two threads call getConnection at the same time 2020-07-14 21:03:25 +02:00
Dario
92de466261 add profiling messages for password hash, if it last to long 2020-07-14 20:41:59 +02:00
Dario
c37eff474a replace double call of password hashing for old user model with new function, copy values from new user 2020-07-14 20:13:46 +02:00
Dario
42c6c5c82e add assert to find null pointer exception in checkEmail 2020-07-14 19:33:44 +02:00
Dario
ddaad461d1 react on missing public key by login, if private key exist 2020-07-14 19:14:21 +02:00
Dario
8d6c2ada49 Convert to utf8-bom to let gettext working correctly 2020-07-14 14:02:40 +02:00
Dario
364efbe495 add further testing before try to write into tb to fix this error with not matching parameter count 2020-07-14 13:49:01 +02:00
Dario
ff6e56aff7 In CheckEmail show CheckEmailPage also if the update return 1 (account already activated) to see the error message, rather then auto-redirected to dashboard if logged in 2020-07-14 13:19:50 +02:00
Dario
2f4701f0b5 adding php server host to config 2020-07-13 17:52:12 +02:00
Dario
31e00d9081 bring everything together to complete direct register :) 2020-07-13 12:23:41 +02:00
Dario
875632e892 update session manager get session by email verification code to work with better new email verification object 2020-07-10 11:22:52 +02:00
Dario
3d6aac8ebe add updated field to email verification in db to able to prevent repeated email sending wit verification code 2020-07-10 10:23:35 +02:00
Dario
8801d91ee7 check more detailed for email verification code resend, fix double send on register, fix double send in case of multiple email verification codes for user in db 2020-07-10 09:47:31 +02:00
Dario
b3476c5d58 remove debug prints 2020-07-10 09:44:42 +02:00
Dario
60fdc6126e add missing save for email verification code in json request 2020-07-08 18:12:29 +02:00
Dario
89195fbcd7 mini changes hoping don't crash on staging anymore 2020-07-05 11:09:18 +02:00
Dario
064fe5fbad update function to get clearer debug picture 2020-07-05 10:50:46 +02:00
Dario
9ade4f71cb Merge branch 'register_direct' of ssh://**REDACTED**/~/_C++/gradido_login_server into register_direct 2020-07-02 19:03:01 +02:00
Dario
a897ac6c8b fix problems with new user in new register process 2020-07-02 19:02:10 +02:00
Dario
b901a0be88 format error message for CheckTransactionPage with new html code 2020-07-01 11:48:10 +02:00
Dario
36196f3f74 change %d with %p for printing out pointer nicely 2020-06-30 13:08:23 +02:00
MarkX
5feb8eef0c code update 2020-06-30 13:07:10 +02:00
Dario
326b5805d8 add tryLoadPassphraseUserBackup function to choose between multiple user backups if more exist throw errors 2020-06-30 12:39:05 +02:00
Dario
045971e919 add function to detect correct mnemonic type if incorrect type in db (for example after db update) 2020-06-30 12:28:02 +02:00
Dario
cb5ab57158 set every new mnemonic to English mnemonic because german contains to many "bad" words 2020-06-30 10:50:26 +02:00
Dario
beb869460b Finish updating CheckTransactionPage with new layout from christine 2020-06-29 14:23:55 +02:00
Dario
b35cab768c add get name with email as one string from new user model to prevent double code 2020-06-29 14:23:19 +02:00
Dario
07ff9be91e add balance also to new User, for replacing old user model in CheckTransactionPage 2020-06-29 14:22:01 +02:00
Dario
ed0aa38813 replace hard coded support email with admin receiver from server config 2020-06-29 14:04:42 +02:00
Dario
1cf5d8fb2b fix case if user has invalid saved private key, now reencrpyt take place and sign is working 2020-06-26 11:46:24 +02:00
Dario
9e5bc624d9 Use controller::User in TransactionTransfer 2020-06-26 11:45:44 +02:00
Dario
ecae855fc0 Update pages for using depracted getOldPassphrase function from session, or use new Passphrase class 2020-06-25 15:58:55 +02:00
Dario
30ba3d7f78 use controller::User for login in Session, for direct register without showing passphrase direct and using new KeyPairEd25519, AuthenticatedEncryption and Passphrase classes 2020-06-25 15:58:05 +02:00
Dario
9f010cc5df use controller::User in RepairDefectPassphrase 2020-06-25 12:06:46 +02:00
Dario
75c5b4c063 doc 2020-06-25 12:06:00 +02:00
Dario
7a9e32912b fix header to work with Poco::AutoPtr 2020-06-25 12:05:44 +02:00
Dario
371d02a800 Use controller::User instead of old User Model in SigningTransaction and add some needed functions for that in other objects 2020-06-25 09:59:19 +02:00
Dario
b2dc53c899 add mnemonic type field to user_backups to allow using multiple mnemonic word lists with some same words 2020-06-24 14:41:01 +02:00
Dario
5934f7c69e rework login and setPassword, fix bugs, update to use AuthenticatedEncryption as Poco::AutoPtr 2020-06-24 14:17:25 +02:00