mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-09-05 05:15:18 +00:00
37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
<title>Verify Your Identity</title>
|
|
<link rel="icon" href="images/favicon.ico">
|
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
|
<script type="text/javascript">
|
|
var magicLink = "#";
|
|
var verifyCallback = function(response) {
|
|
let payload = btoa(JSON.stringify({
|
|
recaptcha: response,
|
|
token: "<?php echo $token ?>"
|
|
}));
|
|
magicLink = "lbry://?verify=" + payload;
|
|
document.getElementById("magic-link-text").textContent = payload;
|
|
document.getElementById("success").style.display = "block";
|
|
};
|
|
var expiredCallback = function() {
|
|
document.getElementById("success").style.display = "none";
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Almost Done!</h1>
|
|
<p>Click the captcha to continue...</p>
|
|
<div class="g-recaptcha" data-sitekey="6LcG_z0UAAAAAKBPDBhiJU_jI9cRNRiJwcUHq95u" data-callback="verifyCallback" data-expired-callback="expiredCallback"></div>
|
|
<div id="success">
|
|
<p>Now click the magic link below to verify your identity in app...</p>
|
|
<button onclick="location.href=magicLink">Magic Link</button>
|
|
<p>Does the magic link not work? Not on the same device as the app? Paste this text into the verification screen instead.</p>
|
|
<div class="tooltip"><span class="tooltiptext">Copied!</span><div id="magic-link-text"></div></div>
|
|
</div>
|
|
</body>
|
|
</html>
|