mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-11-21 10:16:00 -05:00
Conflict resolution
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
This commit is contained in:
9
client/script.js
Normal file
9
client/script.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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;
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user