Fix Broken Login 2

This commit is contained in:
2020-08-17 16:45:42 +01:00
parent 280917b600
commit 145704f41b
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
$alert = array("danger", "Error during OpenID Connect authentication: " . $e->getMessage());
}
if (!user_exists($db, $uuid)) {
if (user_exists($db, $oidc_user['sub']) == false) {
// User doesn't already exist
try {
$stmt = "INSERT INTO users (uuid, uid, given_name, family_name, email) VALUES (:sub, :username, :given, :family, :email)";