diff --git a/configure-script.js b/configure-script.js index 76529f0..23795f7 100644 --- a/configure-script.js +++ b/configure-script.js @@ -35,7 +35,7 @@ const question = (prompt, def = null) => { const appPort = await question('App Port', '3200'); const appDBUser = await question('DB User', appName); - const appDBPass = await question('DB Pass', uuid()); + const appDBPass = await question('DB Pass', 'charizard'); const dbRootPass = await question('DB Root Pass'); const appMailSMTP = await question('Mail SMTP', 'smtp.example.com'); diff --git a/test/dev-auth-requests.rest b/test/dev-auth-requests.rest index 5b6d17e..c558d44 100644 --- a/test/dev-auth-requests.rest +++ b/test/dev-auth-requests.rest @@ -1,34 +1,34 @@ #Signup -POST https://dev-auth.eggtrainer.com/auth/signup HTTP/1.1 +POST https://dev-auth.krgamestudios.com/auth/signup HTTP/1.1 Content-Type: application/json { - "email": "kayneruse@gmail.com", - "username": "Ratstail91", + "email": "example@example.com", + "username": "Example", "password": "helloworld" } ### #Login -POST https://dev-auth.eggtrainer.com/auth/login HTTP/1.1 +POST https://dev-auth.krgamestudios.com/auth/login HTTP/1.1 Content-Type: application/json { - "email": "kayneruse@gmail.com", + "email": "example@example.com", "password": "helloworld" } ### #Query data -GET https://dev-auth.eggtrainer.com/auth/account HTTP/1.1 +GET https://dev-auth.krgamestudios.com/auth/account HTTP/1.1 Authorization: Bearer ### #Logout -DELETE https://dev-auth.eggtrainer.com/auth/logout HTTP/1.1 +DELETE https://dev-auth.krgamestudios.com/auth/logout HTTP/1.1 Authorization: Bearer { @@ -38,7 +38,7 @@ Authorization: Bearer ### #Refresh -POST https://dev-auth.eggtrainer.com/auth/token HTTP/1.1 +POST https://dev-auth.krgamestudios.com/auth/token HTTP/1.1 Content-Type: application/json { @@ -48,7 +48,7 @@ Content-Type: application/json ### #Update account data -PATCH https://dev-auth.eggtrainer.com/auth/update HTTP/1.1 +PATCH https://dev-auth.krgamestudios.com/auth/update HTTP/1.1 Content-Type: application/json Authorization: Bearer @@ -59,7 +59,7 @@ Authorization: Bearer ### #Delete account -DELETE https://dev-auth.eggtrainer.com/auth/deletion HTTP/1.1 +DELETE https://dev-auth.krgamestudios.com/auth/deletion HTTP/1.1 Authorization: Bearer Content-Type: application/json diff --git a/test/requests.rest b/test/localhost-requests.rest similarity index 87% rename from test/requests.rest rename to test/localhost-requests.rest index 3aee8f8..976d5b0 100644 --- a/test/requests.rest +++ b/test/localhost-requests.rest @@ -3,8 +3,8 @@ POST http://127.0.0.1:3200/auth/signup HTTP/1.1 Content-Type: application/json { - "email": "kayneruse@gmail.com", - "username": "Ratstail91", + "email": "example@example.com", + "username": "Example", "password": "helloworld" } @@ -15,8 +15,8 @@ POST http://127.0.0.1:3200/auth/login HTTP/1.1 Content-Type: application/json { - "email": "admin@example.com", - "password": "password" + "email": "example@example.com", + "password": "helloworld" } ### diff --git a/test/debug-startup.sql b/tools/debug-startup.sql similarity index 62% rename from test/debug-startup.sql rename to tools/debug-startup.sql index f4624fa..56f5787 100644 --- a/test/debug-startup.sql +++ b/tools/debug-startup.sql @@ -1,4 +1,4 @@ #use this while debugging CREATE DATABASE IF NOT EXISTS auth; -CREATE USER IF NOT EXISTS 'auth'@'%' IDENTIFIED BY 'venusaur'; +CREATE USER IF NOT EXISTS 'auth'@'%' IDENTIFIED BY 'charizard'; GRANT ALL PRIVILEGES ON auth.* TO 'auth'@'%'; diff --git a/sql/migrations/v1.3.1.sql b/tools/migrations/v1.3.1.sql similarity index 100% rename from sql/migrations/v1.3.1.sql rename to tools/migrations/v1.3.1.sql diff --git a/sql/migrations/v1.4.0.sql b/tools/migrations/v1.4.0.sql similarity index 100% rename from sql/migrations/v1.4.0.sql rename to tools/migrations/v1.4.0.sql