-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
se agregan funcionalidades para la autenticacion
- Loading branch information
1 parent
8487d9d
commit c2cb166
Showing
4 changed files
with
452 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>QR Code</title> | ||
</head> | ||
<body> | ||
<h1>QR Code for WhatsApp Web</h1> | ||
<div id="status-message"></div> | ||
<img id="qr-code" src="" alt="QR Code will be displayed here" style="display:none;"> | ||
<script> | ||
fetch('/qr-status') | ||
.then(response => response.json()) | ||
.then(data => { | ||
if (data.authenticated) { | ||
document.getElementById('status-message').textContent = 'Sesión ya iniciada'; | ||
} else { | ||
const qrCodeImg = document.getElementById('qr-code'); | ||
qrCodeImg.src = `data:image/png;base64,${data.qrCode}`; | ||
qrCodeImg.style.display = 'block'; | ||
} | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.