mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added install ling to loginexceptions, changed some http links to https
This commit is contained in:
parent
08692ffd22
commit
c6947b505c
5 changed files with 9 additions and 8 deletions
|
@ -53,6 +53,7 @@ function GetApp () {
|
|||
userDB: userDB,
|
||||
jsonResponse: false,
|
||||
exceptions: [
|
||||
'/install',
|
||||
'/favicon.ico',
|
||||
'/getVeteranPw',
|
||||
'/moodle-test-userscript/stable.user.js',
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
|
||||
async function GetVeteranPW(button) {
|
||||
button.innerText = '...'
|
||||
const rawResponse = await fetch('http://api.frylabs.net/getveteranpw', {
|
||||
const rawResponse = await fetch('https://api.frylabs.net/getveteranpw', {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
headers: {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 93c5d887f5d92dd6fa13814db102d76cde49e901
|
||||
Subproject commit 7dc12dbfa0343138237518435224f5ae34b3cff6
|
|
@ -121,7 +121,7 @@
|
|||
async function SendFeedback (button) {
|
||||
const feedback = document.getElementById('feedbackTextArea').value
|
||||
button.innerText = '...'
|
||||
const rawResponse = await fetch('http://api.frylabs.net/postfeedback', {
|
||||
const rawResponse = await fetch('https://api.frylabs.net/postfeedback', {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
headers: {
|
||||
|
@ -164,7 +164,7 @@
|
|||
}
|
||||
async function Login(button) {
|
||||
button.innerText = '...'
|
||||
const rawResponse = await fetch('http://api.frylabs.net/login', {
|
||||
const rawResponse = await fetch('https://api.frylabs.net/login', {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
headers: {
|
||||
|
|
|
@ -18,10 +18,10 @@ function CreateDB () {
|
|||
authDB = dbtools.GetDB(usersDBPath)
|
||||
authDB.pragma('synchronous = OFF')
|
||||
|
||||
Object.keys(dbStruct).forEach((tableName) => {
|
||||
const tableData = dbStruct[tableName]
|
||||
dbtools.CreateTable(authDB, tableName, tableData.tableStruct, tableData.foreignKey)
|
||||
})
|
||||
// Object.keys(dbStruct).forEach((tableName) => {
|
||||
// const tableData = dbStruct[tableName]
|
||||
// dbtools.CreateTable(authDB, tableName, tableData.tableStruct, tableData.foreignKey)
|
||||
// })
|
||||
|
||||
try {
|
||||
if (utils.FileExists('./ids')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue