mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-29 05:05:42 +00:00
fix: bot suggestions
This commit is contained in:
@@ -3,6 +3,6 @@ ALTER TABLE "sessions" ADD COLUMN "oauth_name" TEXT;
|
||||
UPDATE
|
||||
"sessions"
|
||||
SET
|
||||
"oauth_name" = "Generic"
|
||||
"oauth_name" = 'Generic'
|
||||
WHERE
|
||||
"oauth_name" IS NULL AND "provider" IS NOT NULL;
|
||||
|
||||
@@ -142,7 +142,9 @@ func GetOAuthProvidersConfig(env []string, args []string, appUrl string) (map[st
|
||||
|
||||
for _, e := range env {
|
||||
pair := strings.SplitN(e, "=", 2)
|
||||
envMap[pair[0]] = pair[1]
|
||||
if len(pair) == 2 {
|
||||
envMap[pair[0]] = pair[1]
|
||||
}
|
||||
}
|
||||
|
||||
envProviders, err := decoders.DecodeEnv(envMap)
|
||||
|
||||
Reference in New Issue
Block a user