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,
|
userDB: userDB,
|
||||||
jsonResponse: false,
|
jsonResponse: false,
|
||||||
exceptions: [
|
exceptions: [
|
||||||
|
'/install',
|
||||||
'/favicon.ico',
|
'/favicon.ico',
|
||||||
'/getVeteranPw',
|
'/getVeteranPw',
|
||||||
'/moodle-test-userscript/stable.user.js',
|
'/moodle-test-userscript/stable.user.js',
|
||||||
|
@@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
async function GetVeteranPW(button) {
|
async function GetVeteranPW(button) {
|
||||||
button.innerText = '...'
|
button.innerText = '...'
|
||||||
const rawResponse = await fetch('http://api.frylabs.net/getveteranpw', {
|
const rawResponse = await fetch('https://api.frylabs.net/getveteranpw', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
|
Submodule public/moodle-test-userscript updated: 93c5d887f5...7dc12dbfa0
@@ -121,7 +121,7 @@
|
|||||||
async function SendFeedback (button) {
|
async function SendFeedback (button) {
|
||||||
const feedback = document.getElementById('feedbackTextArea').value
|
const feedback = document.getElementById('feedbackTextArea').value
|
||||||
button.innerText = '...'
|
button.innerText = '...'
|
||||||
const rawResponse = await fetch('http://api.frylabs.net/postfeedback', {
|
const rawResponse = await fetch('https://api.frylabs.net/postfeedback', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
}
|
}
|
||||||
async function Login(button) {
|
async function Login(button) {
|
||||||
button.innerText = '...'
|
button.innerText = '...'
|
||||||
const rawResponse = await fetch('http://api.frylabs.net/login', {
|
const rawResponse = await fetch('https://api.frylabs.net/login', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
|
@@ -18,10 +18,10 @@ function CreateDB () {
|
|||||||
authDB = dbtools.GetDB(usersDBPath)
|
authDB = dbtools.GetDB(usersDBPath)
|
||||||
authDB.pragma('synchronous = OFF')
|
authDB.pragma('synchronous = OFF')
|
||||||
|
|
||||||
Object.keys(dbStruct).forEach((tableName) => {
|
// Object.keys(dbStruct).forEach((tableName) => {
|
||||||
const tableData = dbStruct[tableName]
|
// const tableData = dbStruct[tableName]
|
||||||
dbtools.CreateTable(authDB, tableName, tableData.tableStruct, tableData.foreignKey)
|
// dbtools.CreateTable(authDB, tableName, tableData.tableStruct, tableData.foreignKey)
|
||||||
})
|
// })
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (utils.FileExists('./ids')) {
|
if (utils.FileExists('./ids')) {
|
||||||
|
Reference in New Issue
Block a user