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