mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Fully functioningverify page without styling
This commit is contained in:
parent
7012654729
commit
d5687f47ee
1 changed files with 19 additions and 6 deletions
|
@ -5,20 +5,33 @@
|
|||
<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 href="/css/yt2.css" rel="stylesheet" type="text/css" />
|
||||
<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) {
|
||||
alert(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>
|
||||
<!--<p><?php echo $token ?></p>-->
|
||||
<!--"6LcG_z0UAAAAAKBPDBhiJU_jI9cRNRiJwcUHq95u"-->
|
||||
<div class="g-recaptcha" data-sitekey="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" data-callback="verifyCallback"></div>
|
||||
<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>
|
||||
|
|
Loading…
Add table
Reference in a new issue