summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-22 18:28:59 +1100
committerGitHub <noreply@github.com>2022-12-22 18:28:59 +1100
commita2304792a21dbdb4bb051bd19b48e64d4de09c8f (patch)
tree3cec744b80925484875964c40c74a9fd7d5d9376
parentFix sync script not closing for some dbms (diff)
parentUpdate patcher to disable qr login (diff)
downloadserver-a2304792a21dbdb4bb051bd19b48e64d4de09c8f.tar.xz
Merge pull request #918 from Puyodead1/refactor/patch/disable-qr-login
[Refactor] Disable QR Login in Test client
-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;
 };