Compare commits

...

2 Commits

Author SHA1 Message Date
Zkitefly
d4c365c0c7
Update qr-login.html
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-03 14:31:48 +00:00
Zkitefly
d2f39a9327
Update qr-login.html 2024-10-03 14:06:19 +00:00

View File

@ -6,7 +6,6 @@ layout: default
<style>
body {
text-align: center;
padding: 50px;
}
.selectable {
-webkit-user-select: all;
@ -35,7 +34,7 @@ layout: default
userPrompt.innerHTML = `请复制代码 <span class="selectable" id="userCode">${userCode}</span> <br>并前往 <a href="${verificationUri}">${verificationUri}</a>,输入代码允许访问并登录微软账户。`;
qrcodeContainer.appendChild(userPrompt);
} else {
const currentUrl = window.location.href + '?login=1';
const currentUrl = window.location.href + '&login=1';
console.log("currentUrl: ", currentUrl);
const canvas = document.createElement('canvas');
QRCode.toCanvas(canvas, currentUrl, function (error) {