Skip to content

Commit

Permalink
Don't fail login if forum account can't be created
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonhasacat committed Mar 24, 2024
1 parent d0f8900 commit 5977cac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Http/Controllers/Login/SSOController.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,11 @@ public function getReturn(Request $request, $token = null)
$signature = ULSHelper::base64url_encode($signature);
$data = file_get_contents(env('SSO_RETURN_FORUMS',
'https://forums.vatusa.net/') . "api.php?register=1&data=$token&signature=$signature");
if ($data != "OK") {
$error = "Unable to create forum data. Please try again later or contact VATUSA6.";

return redirect(env("SSO_RETURN_HOME_ERROR"))->with('error', $error);
}
// if ($data != "OK") {
// $error = "Unable to create forum data. Please try again later or contact VATUSA6.";
//
// return redirect(env("SSO_RETURN_HOME_ERROR"))->with('error', $error);
// }
}
}

Expand Down

0 comments on commit 5977cac

Please sign in to comment.