Merge branch 'main' of hectabit.org:arzumify/hectabit-oauth2

This commit is contained in:
Tracker-Friendly 2024-03-28 17:51:30 +00:00
commit 885f3ea62d
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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 => {