Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/v2/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __invoke(array $arguments): bool {
"path" => "/api/v2/auth/token",
"secure" => false,
"error" => function ($response, $arguments) {
return errorResponse($response, $arguments["message"], 401);
return errorResponse($response, "Invalid credentials. Please check your username and password.", 401);
},
"authenticator" => new HashtopolisAuthenticator,
"before" => function ($request, $arguments) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
UI::addMessage(UI::ERROR, "You need to fill in both fields!");
break;
case '3':
UI::addMessage(UI::ERROR, "Wrong username/password/OTP!");
UI::addMessage(UI::ERROR, "Invalid credentials. Please check your username, password" . (Util::isYubikeyEnabled() ? ", and OTP" : "") . ".");
break;
case '4':
UI::addMessage(UI::ERROR, "You need to be logged in to view this! Please log in again.");
Expand Down