Michael Bumann
e33693398e
Soft delete users ( #476 )
...
* Update Makefile
* Optionally load test DB from env variable
* Add option to soft-delete a user
This allows users to be marked as deleted.
An additional middleware checks if a user is deleted or deactivated and rejects
requests for those as StatusUnauthorized.
note: the middelware adds an additional DB query to load the user.
2024-01-09 19:38:01 +02:00
René Aaron
7c965305fb
fix: migrating payment failed errors to json logging
2023-12-30 12:35:50 +01:00
René Aaron
4eb9f0923a
fix: exclude erroneous payments ( #467 )
...
* fix: exclude errorneous payments
* fix: add invoicesfor in tests
---------
Co-authored-by: im-adithya <imadithyavardhan@gmail.com >
2023-12-12 17:47:55 +01:00
kiwiidb
478bc3b93d
move limits struct out of lnd package
2023-12-08 12:07:54 +01:00
im-adithya
b494219071
chore: further refactoring
2023-12-07 16:44:47 +05:30
im-adithya
0385c17d2b
Merge branch 'task-refactor-checks' into task-limits-jwt
2023-12-07 14:56:27 +05:30
im-adithya
5fd0d66a54
chore: further refactoring
2023-12-07 14:46:12 +05:30
im-adithya
d3208f2bb1
chore: refactor
2023-12-07 14:29:18 +05:30
im-adithya
bd92e6ff85
chore: remove check volume allowed function
2023-12-07 14:15:47 +05:30
im-adithya
e681e69fa2
chore: use limits from JWT if available
2023-12-05 15:58:45 +05:30
im-adithya
62d7ffb7fe
fix: outgoing exceeding tests
2023-12-05 12:29:49 +05:30
im-adithya
f542466811
chore: split volume for send and receive
2023-12-05 12:22:38 +05:30
im-adithya
401cd4a458
chore: refactor payment checks
2023-12-04 16:21:06 +05:30
kiwiidb
ab14adf965
remove redundant settle state in query
2023-09-28 14:58:31 +02:00
kiwiidb
8505f05b38
disable volume check by default
2023-09-27 13:44:07 +02:00
kiwiidb
4f11e62d2b
add sentry capture
2023-09-25 14:53:39 +02:00
kiwiidb
a043f26b1d
fix bug in allowed check
2023-09-25 10:51:20 +02:00
kiwiidb
d6cd58f8af
implement volume check
2023-09-25 10:24:38 +02:00
kiwiidb
afbbca8b45
refactor balance check
2023-09-25 10:04:34 +02:00
Michael Bumann
9b17f35803
fix c&p error
2023-06-30 13:12:59 +02:00
Michael Bumann
68e012121a
consitency
2023-06-30 12:05:10 +02:00
Michael Bumann
2c6db09abc
Add global max fee amount
2023-06-30 12:02:54 +02:00
kiwiidb
def32f2d45
move pubkey checks to lnd client
2023-06-22 16:13:36 +02:00
kiwiidb
d359ad3653
add update user endpoint
2023-05-24 11:19:44 +02:00
kiwiidb
06f3f1750d
relax inequality in balance check
2023-02-17 16:28:46 +01:00
kiwiidb
c74f39f94d
refactor invoice amount checks
2023-02-17 14:59:10 +01:00
Pavol Rusnak
5ea75be052
Introduce config.MinPasswordEntropy option
...
that allows an operator to set minimum entropy (in bits)
of a password to be accepted during account creation
2022-07-29 09:02:33 +02:00
Stefan Kostic
e2947cf9a1
Replace math rand with crypto rand
2022-04-13 20:21:35 +02:00
Stefan Kostic
61c8d8a53c
Add method to fetch user by login
2022-03-18 18:03:32 +01:00
Stefan Kostic
63a3ea09b3
Add simple failure test
2022-02-17 18:32:30 +01:00
kiwiidb
9029d95353
Merge pull request #100 from getAlby/custom-usernames
...
Custom usernames and password when creating new users
2022-02-15 16:47:20 +01:00
Stefan Kostic
80a4d4f20c
Add support for providing user name and password when creating user
2022-02-09 22:53:46 +01:00
Stefan Kostic
f93bdd54f9
Replace hardcoded strings with common constants
2022-02-09 22:27:01 +01:00
Stefan Kostic
3f4cc70d22
Revert commits related to constants
2022-02-09 22:24:52 +01:00
Stefan Kostic
3152f6f2e6
Replace hardcoded strings with common constants
2022-02-09 22:17:49 +01:00
Stefan Kostic
0da4b359d6
Pass in ctx as service methods first argument
2022-02-08 13:35:02 +01:00
Michael Bumann
906578ff57
Merge pull request #67 from getAlby/do-not-return-initialized-invoices
...
Do not return invoices that are in the initialized state
2022-01-24 20:12:12 +02:00
Michael Bumann
bbada328d5
Longer login/passwords
2022-01-22 23:59:05 +01:00
Michael Bumann
39e162088a
Do not return invoices that are in the initialized state
...
Initialized is an internal state before the invoice was created on LND.
We should not expose those. If an invoice is in that state it means it is either currently created or something went wrong.
2022-01-22 15:44:05 +01:00
Michael Bumann
228edcbe39
Return user invoices
...
and maybe correctly encode the Buffers?
2022-01-21 11:49:08 +01:00
Michael Bumann
7bd74a69d8
User service for all user related functions
2022-01-19 21:16:20 +01:00