Commit Graph

300 Commits

Author SHA1 Message Date
ben
2b3a2afe83 Making universal tinyurl function 2023-01-12 15:16:37 +00:00
Vlad Stan
c370bd18c6 refactor: remove redundant # type: ignore 2023-01-10 09:45:12 +02:00
callebtc
c96fd6783b fix super_user check, fixes #1250 2023-01-04 10:41:56 +01:00
calle
b622028f7d
Merge pull request #1271 from lnbits/fix/mypy/ignores
removing type: ignore from Query, Depends, Body and import them correctly
2023-01-04 09:19:06 +01:00
Pavol Rusnak
3d0c66f0f6
remove unnecessary argument encoding from bytes.decode() and str.encode()
the encoding parameter defaults to utf-8, so it's not needed
2023-01-03 22:38:28 +01:00
calle
7a406786f6
Merge pull request #1246 from prusnak/drop-binascii
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify
2023-01-03 10:52:28 +01:00
dni ⚡
b1d1cc6de3 removing type: ignore from Query, Depends, Body and import them correctly 2023-01-02 11:56:28 +01:00
Pavol Rusnak
a377381942
use bytes.fromhex/hex builtins instead of binascii.hexlify/unhexlify 2022-12-29 16:46:35 +01:00
callebtc
ead5ae0d82 refactor: remove unused imports 2022-12-27 14:50:42 +01:00
callebtc
6e7bfd03ee clean up 2022-12-27 14:19:51 +01:00
callebtc
a243e4e320 fix: update to latest changes 2022-12-26 12:12:27 +01:00
callebtc
feb61a3fa7 merge 2022-12-26 12:04:07 +01:00
callebtc
b6f0d7b769 feat: api health check endpoint 2022-12-25 18:49:51 +01:00
calle
7b7d06cee3
Merge pull request #1232 from lnbits/fix/allowed_user
BUG: fix auth issue for superusers  when allowed users are set
2022-12-24 11:22:49 +01:00
dni ⚡
1be460aec3 fix user not exist bug in frontend 2022-12-23 11:53:45 +01:00
Vlad Stan
b68b8a0292 fix: do not loose error, log it 2022-12-21 15:06:45 +02:00
Vlad Stan
1d509fb9d2 fix: typo Setings -> Settings 2022-12-19 11:07:24 +02:00
dni ⚡
ffe0a77106 fix admin ui only have superuser to topup 2022-12-17 09:52:07 +01:00
ben
940615cb0b Merge branch 'main' into FinalAdminUI 2022-12-16 22:45:54 +00:00
callebtc
ac87c49603 fix: disable compression 2022-12-16 17:18:02 +01:00
dni ⚡
02946c1d1c remove old topup route using new one, change wallet.js handling of that url 2022-12-13 10:17:40 +01:00
dni ⚡
ab49b7740c add superuser decorator, fix restart route and mypy issue 2022-12-12 09:45:12 +01:00
Vlad Stan
e28dea97d8 fix: update the in-memory settings object when the DB is updated 2022-12-09 14:53:51 +02:00
Vlad Stan
4cd2fe7ee1
Merge branch 'main' into FinalAdminUI 2022-12-09 14:06:47 +02:00
Vlad Stan
0d4954c01a chore: temp commit (does not work); don't want to lose changes 2022-12-09 09:46:30 +02:00
Vlad Stan
d15782521d refactor: include admin extension into core 2022-12-08 15:41:52 +02:00
callebtc
0538035084 msat values are ints 2022-12-08 14:33:52 +01:00
callebtc
ab4a9370e7 style: make format 2022-12-07 14:57:10 +01:00
callebtc
5f4fa61310 refactor:depend_admin_user 2022-12-07 14:56:45 +01:00
callebtc
6f5f7753ef fix audit endpoint 2022-12-06 20:58:09 +01:00
dni ⚡
c56a31e6f5 add superuser and refactor check_admin function, also put it into satspay 2022-12-05 20:41:23 +01:00
Tiago Vasconcelos
fe5e1241bf fix some of Vlad's review comments 2022-12-02 14:52:31 +00:00
benarc
a220acb583 Removed id, using param instead 2022-12-01 14:41:57 +00:00
benarc
4aeb7683e5 Added Response 2022-12-01 13:15:46 +00:00
Tiago Vasconcelos
3ff14cb71b change status code to 400 on exception 2022-12-01 12:21:25 +01:00
ben
9a9733c1ce Auto stash before merge of "universalwebsocket" and "origin/universalwebsocket" 2022-11-29 11:23:34 +00:00
Arc
a7fd44f4ca
Merge branch 'main' into universalwebsocket 2022-11-29 11:12:28 +00:00
Tiago Vasconcelos
b68172696d change status code to 400 on exception 2022-11-29 10:28:19 +00:00
ben
187d709098 isort 2022-11-28 13:28:11 +00:00
ben
bb84f6b0e8 Black 2022-11-28 13:24:10 +00:00
ben
aefd1fad69 isort 2022-11-28 13:13:45 +00:00
ben
00123d6c16 Merge remote-tracking branch 'origin/main' into universalwebsocket 2022-11-28 12:29:34 +00:00
dni ⚡
a92bb03664 merge from main 2022-11-24 14:37:50 +01:00
ben
dce4da96b7 fixed function name clash 2022-11-24 00:46:39 +00:00
ben
c2a737ab84 Black 2022-11-24 00:34:46 +00:00
ben
f876f0659f Moved into correct files, and added payment example 2022-11-24 00:21:39 +00:00
ben
fde128e961 Better naming 2022-11-23 23:35:02 +00:00
ben
cea4f9350c black 2022-11-23 22:42:32 +00:00
ben
152991fbec added try for return 2022-11-23 22:31:11 +00:00
ben
2f08255e92 added get option 2022-11-23 22:27:09 +00:00