Restyled by php-cs-fixer (#119)
Co-authored-by: Restyled.io <commits@restyled.io>
This commit was merged in pull request #119.
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
} catch (PDOException $e) {
|
||||
$alert = array("danger", "Error during check for user record: " . $e->getMessage());
|
||||
}
|
||||
if (empty($sql))
|
||||
{
|
||||
if (empty($sql)) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
$alert = array("danger", "Error during OpenID Connect authentication: " . $e->getMessage());
|
||||
}
|
||||
|
||||
if (!user_exists($db, $uuid))
|
||||
{
|
||||
if (!user_exists($db, $uuid)) {
|
||||
// User doesn't already exist
|
||||
try {
|
||||
$stmt = "INSERT INTO users (uuid, uid, given_name, family_name, email) VALUES (:sub, :username, :given, :family, :email)";
|
||||
@@ -58,4 +57,3 @@
|
||||
$_SESSION['is_signed_in'] = "true";
|
||||
|
||||
header('Location: /');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user