Merge branch 'main' of hectabit.org:arzumify/hectabit-oauth2
This commit is contained in:
commit
885f3ea62d
|
@ -1,6 +1,7 @@
|
|||
DROP TABLE IF EXISTS users;
|
||||
DROP TABLE IF EXISTS userdata;
|
||||
DROP TABLE IF EXISTS sessions;
|
||||
DROP TABLE IF EXISTS logins;
|
||||
|
||||
CREATE TABLE users (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Send Data to example.org</title>
|
||||
<title>Sending data...</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Send Data to example.org</h1>
|
||||
<h1>Sending data...</h1>
|
||||
|
||||
<script>
|
||||
// Function to parse URL parameters
|
||||
|
@ -42,6 +42,7 @@
|
|||
body: JSON.stringify(data)
|
||||
})
|
||||
.then(response => {
|
||||
console.log(response);
|
||||
window.location.replace(redirect_uri + "?code=" + response + "&state=" + state)
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
Reference in New Issue