Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be902204 authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

fix: patch-013 for nc32 upgrade

parent 055e633e
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -5,9 +5,9 @@ Subject: [PATCH] Reverts token password update on each login
NC 21 started updating password of each and every token on each login. This introduces a huge load on database.
This patch reverts to only update when there are expired tokens.

--- ./lib/private/Authentication/Token/PublicKeyTokenProvider.php	2024-07-25 17:51:37 +0530
+++ ./lib/private/Authentication/Token/PublicKeyTokenProvider-new.php	2024-07-25 17:53:16 +0530
@@ -504,6 +504,11 @@
--- ./lib/private/Authentication/Token/PublicKeyTokenProvider.php	2026-03-23 17:46:39.518001611 +0600
+++ ./lib/private/Authentication/Token/PublicKeyTokenProvider-new.php	2026-03-24 00:00:01.266417815 +0600
@@ -519,6 +519,11 @@
 	}
 
 	public function updatePasswords(string $uid, string $password) {
@@ -19,4 +19,3 @@ This patch reverts to only update when there are expired tokens.
 		// prevent setting an empty pw as result of pw-less-login
 		if ($password === '' || !$this->config->getSystemValueBool('auth.storeCryptedPassword', true)) {
 			return;