mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-12 22:43:20 -05:00
7c7285b9f7
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
10 lines
342 B
JavaScript
10 lines
342 B
JavaScript
document.getElementById("reg-btn").addEventListener("click", function(){
|
|
var email = document.getElementById("email").value;
|
|
var url = window.location.origin+"/v1/token?email="+email
|
|
fetch(url)
|
|
.then(res => res.json())
|
|
.then((data) => {
|
|
document.getElementById("token").innerHTML = "SECRET "+data.token;
|
|
})
|
|
})
|