Skip to content

Commit

Permalink
updated "patch" for testing NC reflecting last changes (#266)
Browse files Browse the repository at this point in the history
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 <bigcat88@icloud.com>
  • Loading branch information
bigcat88 authored Jun 27, 2024
1 parent 59c7ae1 commit 4d03563
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/analysis-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fail-fast: false
matrix:
include:
- nextcloud: "27.1.4"
- nextcloud: "27.1.11"
python: "3.10"
php-version: "8.1"
timeout-minutes: 60
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
fail-fast: false
matrix:
include:
- nextcloud: "27.1.4"
- nextcloud: "27.1.11"
python: "3.11"
php-version: "8.2"
env:
Expand Down
6 changes: 3 additions & 3 deletions tests/data/nc_pass_confirm.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php b/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
index a72a7a40016..c6738de65df 100644
index 5ff9d7386da..04edf4e9991 100644
--- a/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
@@ -88,7 +88,7 @@ class PasswordConfirmationMiddleware extends Middleware {
@@ -93,7 +93,7 @@ class PasswordConfirmationMiddleware extends Middleware {

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

0 comments on commit 4d03563

Please sign in to comment.