Commit Graph

1980 Commits

Author SHA1 Message Date
nicolas.dorier
8593d33879 fix test 2025-04-10 23:56:07 +09:00
nicolas.dorier
5df2ffe689 Fix crash if DelayedTaskScheduler has too big timestamp 2025-04-09 00:03:43 +09:00
Nicolas Dorier
73af6f4ff4 Do not automatically invite a user to the instance when inviting in a store (#6658) 2025-04-08 18:21:58 +09:00
d11n
1c921030dc Store users: Ensure the last owner cannot be downgraded (#6654)
* Store users: Ensure the last owner cannot be downgraded

Changes the behaviour of the `AddOrUpdateStoreUser` method to throw errors for the failure cases, so that the UI and API can report the actual problem. A role change might fail if the user already has that role or if they are the last owner of the store.

* Cleanup code

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2025-04-08 17:21:07 +09:00
Nicolas Dorier
ce83e4d96d Fix: PaymentRequests created via API never expires (#6657) 2025-04-08 14:17:31 +09:00
nicolas.dorier
ead74a985f Remove deprecated properties 2025-04-04 16:28:44 +09:00
d11n
a916ae81be Greenfield: Expand user data (#6649) 2025-04-04 16:15:33 +09:00
Nicolas Dorier
ec6c22f4bf Bump CLN (#6645) 2025-03-31 21:59:27 +09:00
Nicolas Dorier
658ddd1f27 Fix: Refunds through API were ignoring BOLT11 expiration at store level (#6644) 2025-03-31 09:32:12 +09:00
rockstardev
6784be2ce2 Adding logic to count signatures in multisig 2025-03-26 23:08:48 -05:00
nicolas.dorier
5e3e2ed2c1 Fix flaky test (#6634) 2025-03-24 21:48:43 +09:00
rockstardev
fcd49ff729 Merge pull request #6629 from btcpayserver/feat/email-rules-refactor
Email rules refactor
2025-03-23 09:27:20 -05:00
rockstardev
0997e9b76c Fixing Selenium tests 2025-03-23 09:04:11 -05:00
rockstardev
5a24651be0 CanSeetupEmailRules test 2025-03-23 09:04:11 -05:00
rockstardev
5ce8648bd2 Fixing tests 2025-03-23 09:04:10 -05:00
nicolas.dorier
019c878c4e Add InvoiceEntity.NetSettled property 2025-03-23 10:53:05 +09:00
nicolas.dorier
2911771f19 Feature: RBF and UX improvement to fee bumping 2025-03-11 17:44:18 +09:00
Nicolas Dorier
7355be48ee Merge pull request #6535 from NicolasDorier/remove-xmr-sec
Remove ZCash and Monero from core code
2025-03-11 15:47:20 +09:00
nicolas.dorier
71dbfd9f28 Fix warning 2025-03-06 22:30:11 +09:00
ThiagoOyo
9bff84f90f Fix: Archived invoices shouldn't be browsable by non authenticated users (#6588)
* fix: return 403 when unauthenticated user accesses an archived invoice receipt

* refactor: simplify archived invoice access check with pattern matching

* Return 404 for unauthorized users accessing archived invoice

Co-authored-by: d11n <mail@dennisreimann.de>

* feat: add archived invoice validation for unauthenticated access in Checkout and GetStatus

* test: add test case for unauthorized access to archived invoice returning not found

* test: add unauthorized checkout test for archived invoice

* Commenting code and adding test case for GetStatus

---------

Co-authored-by: d11n <mail@dennisreimann.de>
Co-authored-by: rockstardev <5191402+rockstardev@users.noreply.github.com>
2025-03-06 17:45:53 +09:00
rockstardev
2d21e3b26b Final fixes 2025-03-05 22:49:07 -06:00
rockstardev
70c2fc0a9e Fixing bug on password not being cleared 2025-03-05 22:49:07 -06:00
rockstardev
18852af241 Refactoring and commenting 2025-03-05 22:49:06 -06:00
rockstardev
746a8cf6e1 Getting fast tests to pass 2025-03-05 22:49:06 -06:00
nicolas.dorier
be8ecb823e Refactor email endpoints 2025-03-05 22:49:06 -06:00
rockstardev
a7e3cbb105 Adding endpoint to set server email settings (#6601)
* Adding endpoint in Greenfield to allow server email settings

* Adding related swagger file

* Refactoring EmailSettingsData to be more readable

* Adding server email masking

* Adding tests

* Update BTCPayServer/wwwroot/swagger/v1/swagger.template.serveremail.json

Co-authored-by: d11n <mail@dennisreimann.de>

* Masking smtp server email returned over greenfield api and test

* Retaining password if password mask is used

* Remove magic string *****

* Flatten request for server's settings. Fix bug on shared setting instances

* Remove useless doc

* Simplify code

* Fix Store Email settings page

---------

Co-authored-by: d11n <mail@dennisreimann.de>
Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2025-02-27 15:59:17 +09:00
rockstardev
8b5c5895f0 Selenium tests for Multisig on server (#6487)
* Adding MultisigTests

* Adding fetching of receive address and creating pending transaction

* Completing multisig test flow

* Reverting Selenium ChromeDriver version

* Adding generation of PSBTs

* Removing unnecessary lines

* PSBT test signing now working with multisig dervation scheme

* Updating SignTestPSBT test

* Reducing number of iterations for test funding, to speed up tests

* Bugfixing PSBT problem

* Ensuring that PSBT signing also works for pending transactions

* Ensuring we don't collect count duplicate signatures for same PSBTs

* Resolving bug in PendingTransactionService where Combine was modifying object

* Fixing bug where pending transaction was not broadcased if there was ReturnUrl

* Finally finishing Multisig Selenium test flow with signing PSBTs, broadcasting and cancelling them

* Small nit, waiting loaded element

* Nit: Use AssetElementNotFound

* Fix warning

* Remove code dups

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2025-02-25 14:39:57 +09:00
rockstardev
148e31721b Bumping LND to 0.18.5-beta in all yml files we've got 2025-02-18 22:17:24 -06:00
rockstardev
df16ad6418 Bumping LND to 0.18.5-beta 2025-02-18 22:09:55 -06:00
nicolas.dorier
e59684fc6a Bump NBX 2025-02-10 15:26:35 +09:00
nicolas.dorier
c37584328b Refactor: Remove cshtml duplication for back/url buttons in wizards 2025-02-07 16:57:50 +09:00
nicolas.dorier
bc1a1cf34f Fix: Invalid currency pair (FARTCOIN_USDC) may show in the logs when using kraken rate provider 2025-01-24 21:56:20 +09:00
nicolas.dorier
51c2b9f243 Remove ZCash and Monero from core code 2025-01-22 00:00:22 +09:00
nicolas.dorier
8e927eee73 Better validation of inputs when setting on-chain payment method by API 2025-01-21 23:37:56 +09:00
nicolas.dorier
5534ddeb28 Revert "Bump dependency versions (#6568)"
This reverts commit 2725bbfe2a.
2025-01-21 16:41:42 +09:00
d11n
2725bbfe2a Bump dependency versions (#6568)
Adapt to the updates made on mobile-working-branch
2025-01-21 15:39:28 +09:00
Nicolas Dorier
01250f6aee Add ability to move a payout from InProgress to AwaitingPayment (#6564) 2025-01-21 15:37:45 +09:00
Nicolas Dorier
d6b547d8bf Bump Payjoin libraries (#6561) 2025-01-19 18:19:05 +09:00
Nicolas Dorier
1830d398a4 Bump Bitcoin Core to 18.1 (#6563) 2025-01-17 18:59:43 +09:00
Nicolas Dorier
e1f47b2738 Bump bitcoin core in tests (#6550) 2025-01-13 12:41:13 +09:00
rockstardev
c766047f63 Bumping LND to 0.18.4-beta in other files as well 2025-01-08 15:59:47 -06:00
rockstardev
b59182f169 Bumping LND to 0.18.4-beta 2025-01-07 19:11:43 -06:00
Nicolas Dorier
76a880a30e Disable lightning payments histogram (#6518) 2024-12-23 18:04:07 +09:00
d11n
adce1dffb1 Checkout: Add support link to footer (#6511)
Closes #6495.
2024-12-23 09:45:36 +09:00
Nicolas Dorier
8acf1c2d62 Refactoring: Introduce IUrlHelper.ActionAbsolute (#6513) 2024-12-21 00:16:04 +09:00
d11n
7829a93251 POS: Create Invoice action optionally responds with JSON (#6439)
* POS: Create Invoice action optionally responds with JSON

We adapted this action, which is full of custom POS logic, for the app to avoid creating a separate API endpoint.

* Add test and improve error handling
2024-12-13 12:09:55 +09:00
d11n
00cc16455c App: Add events which the app subscribes to (#6435)
* App: Add events which the app subscribes to

Various events, which are relevant for the app to react to changes made on the server.

* Refactor events

* Do not extend NewBlockEvent

* Refactoring events

* Add store role events

* Refactoring: Rename StoreUserEvent

* Fix: Subscribe to UserEvent.Invited

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2024-12-11 20:11:51 +09:00
Dennis Reimann
4d38f91bd5 POS: Fix throttling for unauthenticated users
Fixes a regression introduced with d24adda700: The negation for the `_rateLimitService.Throttle` result was removed with that commit, which lead to all unauthenticated request getting throttled. (It was correctly implemented in #6415.

Fixes btcpayserver/app#131.
2024-12-09 18:01:09 +01:00
nicolas.dorier
1214367503 bump nbx image 2024-12-09 16:31:56 +09:00
Nicolas Dorier
eb89f4636b Merge pull request #6415 from Kukks/rate-limit-pos
Do not throttle pos when logged in
2024-12-09 12:42:51 +09:00