Daniel Krol
afc43a0068
better prometheus tags
2022-09-21 16:23:31 -04:00
Daniel Krol
a82a4e7290
Fix timing with README generation
...
The async websocket output was happening outide of the code blocks so it
rendered wrong.
2022-09-20 14:00:59 -04:00
Daniel Krol
4f074b181c
Websocket to notify clients about wallet updates
2022-09-19 18:36:55 -04:00
Daniel Krol
4f97d7761f
git ignore the binary
2022-08-27 11:36:08 -04:00
Daniel Krol
f090a034de
Disallow unknown json fields in request bodies
2022-08-25 16:38:57 -04:00
Daniel Krol
f04a01a5a0
Delete some TODOs that I've made into tasks
2022-08-25 15:55:02 -04:00
Daniel Krol
aac7ef713e
Don't care about various error checking TODOS in test client
...
Creator of real implementation will obviously know to do this, looking at the server implementation to see what errors come out.
2022-08-25 15:17:01 -04:00
Daniel Krol
f244dab036
Oops, forgot to have verification tokens expire
2022-08-25 13:32:14 -04:00
Daniel Krol
b86687a0c5
Log a couple more things.
...
Also change sequence=1 to its own const. Eventually we may want to make it variable per user when we do server switching.
2022-08-25 12:43:33 -04:00
Daniel Krol
48c74350e0
MIT License
2022-08-24 14:32:13 -04:00
Daniel Krol
9c057a5319
Linux only
2022-08-24 14:32:03 -04:00
Daniel Krol
08d57db466
Add timestamps to accounts and wallets tables
...
To help diagnosing/debugging in the future
2022-08-23 13:34:31 -04:00
Daniel Krol
448892cd82
validatePassword func
2022-08-22 19:41:30 -04:00
Daniel Krol
9046be7c4f
const maxBodySize
2022-08-22 17:44:34 -04:00
Daniel Krol
0c22de5186
Simplify hosting details
...
I sort of did it wrong anyway. Just tell them to use systemd and caddy. If they demand specifics we can supply it later.
2022-08-22 17:34:44 -04:00
Daniel Krol
4843b91ce7
Rename the output. lbry-id -> wallet-sync-server
2022-08-22 12:05:53 -04:00
Daniel Krol
4dfacd8826
Remove comment from .goreleaser.yaml
...
It's no longer the default; I edited it
2022-08-20 11:58:44 -04:00
Daniel Krol
36d0d536de
Github Actions and Goreleaser
2022-08-20 11:42:12 -04:00
Daniel Krol
aa691dbc09
Use verify_token=null as verified to avoid unique constraint
...
We were using verify_token="" to mean that the user was verified. We need a unique constraint on verify_token to prevent two users from getting the same verify link in their email. This means that if we have two verified users, they will both have verify_token="", which triggers the unique constraint. Oops. However, null is an exception to unique constraints, so we're now using that instead to mean verified.
2022-08-13 22:15:19 -04:00
Daniel Krol
e2893c13e3
Add test to confirm that we can create two accounts on the server.
2022-08-13 19:37:54 -04:00
Daniel Krol
d1c5685045
Port 443 for Caddy so we have nice links in emails. No need for weird ports.
2022-08-13 15:03:06 -04:00
Daniel Krol
0e36bebdae
Mailgun integration
2022-08-13 14:26:04 -04:00
Daniel Krol
58cefa4c1b
test client: update_secrets -> update_derived_secrets
...
It doesn't update the root password.
2022-08-09 17:46:11 -04:00
Daniel Krol
126f600cac
Note for auditor
2022-08-09 12:01:56 -04:00
Daniel Krol
6c9b9d07b2
Pass root password directly to SDK again.
...
Related to this: https://github.com/lbryio/wallet-sync-server/issues/4
Passing in a KDF output messes with the existing CLI UI for wallet locking. Also the SDK has its own encryption from password, may as well use it.
2022-08-09 10:16:48 -04:00
Daniel Krol
165bcf1964
scrypt inputs to consts, and fmt
2022-08-04 20:26:01 -04:00
Daniel Krol
f5650e8d96
Hosting configs FOR DEV ONLY to let lbry.id work out of the box again
2022-08-01 11:46:06 -04:00
Daniel Krol
1e37b0e7b1
Add mailgun env vars
2022-07-31 19:23:21 -04:00
Daniel Krol
510dfe2b96
Integration test (sort of) for account verify
2022-07-31 16:43:36 -04:00
Daniel Krol
f60e5659b6
Don't update verify tokens if the account is already verified
2022-07-31 14:13:30 -04:00
Daniel Krol
39144aa3c0
Comment assumptions on store functions
2022-07-31 13:54:40 -04:00
Daniel Krol
aa1361a5fa
Human-friendly output for verify account endpoint
2022-07-31 12:59:46 -04:00
Daniel Krol
ea3b04eff6
store.VerifyToken
2022-07-31 12:42:03 -04:00
Daniel Krol
2dd3019b08
store.UpdateVerifyTokenString
2022-07-31 12:26:03 -04:00
Daniel Krol
eabfa9d54c
No password change for unverified accounts
2022-07-30 23:09:33 -04:00
Daniel Krol
4a205bbda7
GetUserId - Return error if account unverified
2022-07-30 15:06:27 -04:00
Daniel Krol
dee2882fe9
Verify token db fields, CreateAccount changes
2022-07-30 14:24:33 -04:00
Daniel Krol
3b44a55f5a
Connect the latest handlers to endpoints.
2022-07-29 20:53:28 -04:00
Daniel Krol
5ffcddf8f7
Endpoint to re-send verify token string
2022-07-29 20:49:00 -04:00
Daniel Krol
c8620f7c8c
Comment
2022-07-29 20:34:47 -04:00
Daniel Krol
19396e9797
Make error message more accurate. Rename test.
2022-07-29 15:52:23 -04:00
Daniel Krol
e6f5628a94
Note for when getting auth token fails
2022-07-29 14:34:54 -04:00
Daniel Krol
4ecf8538be
log.Printf istead fmt.Printf to be uniform
2022-07-29 13:43:27 -04:00
Daniel Krol
be0e022c92
Check/log email configs on startup.
2022-07-29 13:42:25 -04:00
Daniel Krol
f2ba31d972
Warning for self-hosting users
2022-07-29 13:38:26 -04:00
Daniel Krol
0948e95932
Forgot the mail package
2022-07-29 09:42:12 -04:00
Daniel Krol
fcbab29d06
Test make new verify token
2022-07-29 09:14:25 -04:00
Daniel Krol
6672175a25
Server test/implement send verify-account email
2022-07-27 19:45:09 -04:00
Daniel Krol
f15875c4a6
Verify account endpoint
2022-07-26 16:36:57 -04:00
Daniel Krol
0c6964df0e
Oops delete way outdated comment
2022-07-26 12:48:44 -04:00