Commit 2ae5cdd4 authored by Zohten's avatar Zohten

jsonned

parent 7ccc2de3
......@@ -32,7 +32,8 @@ class LoginController extends Controller
}
if (empty($user) || !hash_equals($json['pwd'], $user->password())) {
$r = new Response(422, "wrong credentials");
$message = json_encode(["message" => "Wrong credentials"]);
$r = new Response(422, $message);
$r->send();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment