API login/register/delete-account, automatic db schema init
This commit is contained in:
parent
1846203076
commit
f7edece0af
11 changed files with 479 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue