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:
@@ -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: {
|
||||
|
Submodule public/moodle-test-userscript updated: 93c5d887f5...7dc12dbfa0
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user