summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2022-12-22 01:03:12 -0500
committerPuyodead1 <puyodead@proton.me>2022-12-22 01:03:12 -0500
commit9be9bad43150b576388051ed45197669e053f5a6 (patch)
tree3cec744b80925484875964c40c74a9fd7d5d9376
parentFix sync script not closing for some dbms (diff)
downloadserver-9be9bad43150b576388051ed45197669e053f5a6.tar.xz
Update patcher to disable qr login
-rw-r--r--scripts/client.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/client.js b/scripts/client.js
index f53e7634..cbbbcb6f 100644
--- a/scripts/client.js
+++ b/scripts/client.js
@@ -135,6 +135,9 @@ const doPatch = (content) => {
 		"e.isFastConnect=t; if (t !== undefined) e._doResumeOrIdentify();"
 	);
 
+	// disable qr code login
+	content = content.replaceAll(/\w\?\(\d,\w\.jsx\)\(\w*\,{authTokenCallback:this\.handleAuthToken}\):null/g, "null");
+
 	return content;
 };