Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4d03563

Browse files
authoredJun 27, 2024··
updated "patch" for testing NC reflecting last changes (#266)
The patch just stopped working because there was a commit to the master and backports to other versions of the cloud. Reference: nextcloud/server@0231301 Signed-off-by: Alexander Piskun <[email protected]>
1 parent 59c7ae1 commit 4d03563

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎.github/workflows/analysis-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
fail-fast: false
4747
matrix:
4848
include:
49-
- nextcloud: "27.1.4"
49+
- nextcloud: "27.1.11"
5050
python: "3.10"
5151
php-version: "8.1"
5252
timeout-minutes: 60
@@ -195,7 +195,7 @@ jobs:
195195
fail-fast: false
196196
matrix:
197197
include:
198-
- nextcloud: "27.1.4"
198+
- nextcloud: "27.1.11"
199199
python: "3.11"
200200
php-version: "8.2"
201201
env:

‎tests/data/nc_pass_confirm.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
diff --git a/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php b/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
2-
index a72a7a40016..c6738de65df 100644
2+
index 5ff9d7386da..04edf4e9991 100644
33
--- a/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
44
+++ b/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
5-
@@ -88,7 +88,7 @@ class PasswordConfirmationMiddleware extends Middleware {
5+
@@ -93,7 +93,7 @@ class PasswordConfirmationMiddleware extends Middleware {
66

77
$lastConfirm = (int) $this->session->get('last-password-confirm');
8-
// we can't check the password against a SAML backend, so skip password confirmation in this case
8+
// TODO: confirm excludedUserBackEnds can go away and remove it
99
- if (!isset($this->excludedUserBackEnds[$backendClassName]) && $lastConfirm < ($this->timeFactory->getTime() - (30 * 60 + 15))) { // allow 15 seconds delay
1010
+ if (!isset($this->excludedUserBackEnds[$backendClassName]) && $lastConfirm < ($this->timeFactory->getTime() - 5)) { // allow 5 seconds delay
1111
throw new NotConfirmedException();

0 commit comments

Comments
 (0)
Please sign in to comment.