Skip to content

Commit

Permalink
updating build files and user_complete check
Browse files Browse the repository at this point in the history
  • Loading branch information
irvins committed Oct 22, 2024
1 parent 4436dd5 commit ea2b325
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MICA.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function loginUser($payload): array
$check = reset($json);

// Ensure completed users cannot login again
if (isset($check["user_complete"]) && $check['user_complete'] !== "2") {
if (isset($check["user_complete"]) && $check['user_complete'] == "2") {
$time_completed = $check['completion_timestamp'];
throw new \Exception("Your MICA session was completed on $time_completed, thank you for participating");
}
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mica-chatbot/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script type="module" crossorigin src="/assets/index-ABqdDKET.js"></script>
<script type="module" crossorigin src="/assets/index-BXI-ZlRe.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CTqSVGO7.css">
</head>
<body>
Expand Down

0 comments on commit ea2b325

Please sign in to comment.