Daniel Krol
a40f46dc08
remove test failure for now
2022-08-19 20:20:48 -04:00
Daniel Krol
da8210d66a
try fixing path
2022-08-19 20:20:48 -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
0e36bebdae
Mailgun integration
2022-08-13 14:26:04 -04:00
Daniel Krol
510dfe2b96
Integration test (sort of) for account verify
2022-07-31 16:43:36 -04:00
Daniel Krol
aa1361a5fa
Human-friendly output for verify account endpoint
2022-07-31 12:59:46 -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
4ecf8538be
log.Printf istead fmt.Printf to be uniform
2022-07-29 13:43:27 -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
2f4ffd752c
Temporarily fix integration tests for email verify
...
Require email verify. As of now we don't have the "verified" bit in the storage layer so it passes. Once we put that in, we'll have to go back and add a call to the verification endpoint.
2022-07-26 11:21:55 -04:00
Daniel Krol
aee351a2b1
Don't allow password change for unverified accounts
...
Mainly because wallet change is tied up in it
2022-07-26 11:18:43 -04:00
Daniel Krol
5985631410
Don't hand out auth tokens if they're not verified
2022-07-26 10:53:31 -04:00
Daniel Krol
55db62e2f9
Register endpoint handles "verified" status
...
Based on the verification mode specified in env. The db doesn't do anything with it yet.
2022-07-26 10:16:44 -04:00
Daniel Krol
f792ba5846
env
package provides config values
2022-07-24 16:03:37 -04:00
Daniel Krol
ade526f4f9
Create environmental var package
2022-07-23 19:03:51 -04:00
Daniel Krol
41b14dad44
Prometheus - track wallet requests
2022-07-22 19:49:30 -04:00
Daniel Krol
4f8a648cc4
Notes for auditor.
2022-07-22 16:37:27 -04:00
Daniel Krol
f10cc8aa26
Salt Seed, used to generate secrets on client
2022-07-21 19:10:16 -04:00
Daniel Krol
23f9d45ed5
More useful 404, particularly for API version change
2022-07-21 15:14:21 -04:00
Daniel Krol
4430013bae
KDF for server password. Save salt in DB.
2022-07-14 22:04:03 -04:00
Daniel Krol
55686cb7b5
Change module name to new repo account
2022-07-11 22:14:53 -04:00
Daniel Krol
2e0eb736f9
Remove outdated comment
2022-07-11 09:51:22 -04:00
Daniel Krol
6646e9a4f9
validate() functions return error messages
2022-07-11 09:42:08 -04:00
Daniel Krol
84640905b5
Integration test for password change
2022-07-06 16:45:50 -04:00
Daniel Krol
f8d51f9b31
Rename file to be more uniform
2022-07-06 15:26:26 -04:00
Daniel Krol
125e461d95
Change password endpoint implemented and tested
2022-07-06 14:03:59 -04:00
Daniel Krol
bce47979f6
Comments, remove some old junk
2022-07-06 13:00:23 -04:00
Daniel Krol
3829155308
ErrNoUId -> ErrWrongCredentials
2022-07-06 12:44:35 -04:00
Daniel Krol
f8e5ada1ee
Comment
2022-06-29 11:15:00 -04:00
Daniel Krol
d121b115f2
Fix intergration test after moving functions around
2022-06-29 11:10:29 -04:00
Daniel Krol
3d492d8b86
Update API: PostWallet no longer returns a wallet
2022-06-23 15:22:31 -04:00
Daniel Krol
94114ec36d
Finish server tests
2022-06-22 17:56:29 -04:00
Daniel Krol
a6d41df4e4
Simplify expectErrorString
2022-06-22 11:37:03 -04:00
Daniel Krol
ea4b907293
checkAuth test
2022-06-22 11:17:09 -04:00
Daniel Krol
c6ef525f7c
Oops, missed fmt
2022-06-22 11:06:05 -04:00
Daniel Krol
e0f847a381
Basic validation checks in error tests (just to make sure validation functions are called)
2022-06-21 19:48:32 -04:00
Daniel Krol
39015963e6
wallet request validation test. loopify auth request validation test.
2022-06-21 19:27:54 -04:00
Daniel Krol
408a4817dc
Test validation errors for get/post wallet
2022-06-21 18:25:22 -04:00
Daniel Krol
db1c55dff0
TestServerPostWallet
2022-06-21 16:59:32 -04:00
Daniel Krol
d38fdf0d11
Axe function we folded into other function
2022-06-21 11:56:32 -04:00
Daniel Krol
1f4bf9da6d
Add errors to GetWallet test
2022-06-21 11:52:03 -04:00
Daniel Krol
8ba482521f
Get server/wallet test ready for loop with variations
2022-06-20 20:47:58 -04:00
Daniel Krol
322e4d38f5
Improve a few tests.
2022-06-20 18:10:54 -04:00
Daniel Krol
9ddf00d3f3
Test getWallet (via handleWallet)
2022-06-19 18:54:59 -04:00
Daniel Krol
fd7e1988d3
Remove placeholders for overly focused tests
2022-06-19 17:51:40 -04:00
Daniel Krol
62866a0045
Handle oversized requests.
2022-06-19 17:49:05 -04:00