API login/register/delete-account, automatic db schema init

This commit is contained in:
ari melody 2024-09-23 00:57:23 +01:00
parent 1846203076
commit f7edece0af
Signed by: ari
GPG key ID: CF99829C92678188
11 changed files with 479 additions and 8 deletions

View file

@ -18,7 +18,7 @@ var CREDENTIALS_PROVIDED = true
var CLIENT_ID = func() string {
id := os.Getenv("DISCORD_CLIENT")
if id == "" {
fmt.Printf("WARN: Discord client ID (DISCORD_CLIENT) was not provided. Admin login will be unavailable.\n")
// fmt.Printf("WARN: Discord client ID (DISCORD_CLIENT) was not provided.\n")
CREDENTIALS_PROVIDED = false
}
return id
@ -26,7 +26,7 @@ var CLIENT_ID = func() string {
var CLIENT_SECRET = func() string {
secret := os.Getenv("DISCORD_SECRET")
if secret == "" {
fmt.Printf("WARN: Discord secret (DISCORD_SECRET) was not provided. Admin login will be unavailable.\n")
// fmt.Printf("WARN: Discord secret (DISCORD_SECRET) was not provided.\n")
CREDENTIALS_PROVIDED = false
}
return secret