mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 04:06:01 +01:00
fix(api): 🐛 Fix slightly incorrect error message when logging in with wrong credentials
This commit is contained in:
parent
f9c9a7d527
commit
c7423d7421
|
|
@ -147,7 +147,7 @@ describe(meta.route, () => {
|
|||
"invalid_grant",
|
||||
);
|
||||
expect(locationHeader.searchParams.get("error_description")).toBe(
|
||||
"Invalid email or password",
|
||||
"Invalid identifier or password",
|
||||
);
|
||||
|
||||
expect(response.headers.get("Set-Cookie")).toBeNull();
|
||||
|
|
@ -184,7 +184,7 @@ describe(meta.route, () => {
|
|||
"invalid_grant",
|
||||
);
|
||||
expect(locationHeader.searchParams.get("error_description")).toBe(
|
||||
"Invalid email or password",
|
||||
"Invalid identifier or password",
|
||||
);
|
||||
|
||||
expect(response.headers.get("Set-Cookie")).toBeNull();
|
||||
|
|
@ -221,7 +221,7 @@ describe(meta.route, () => {
|
|||
"invalid_grant",
|
||||
);
|
||||
expect(locationHeader.searchParams.get("error_description")).toBe(
|
||||
"Invalid email or password",
|
||||
"Invalid identifier or password",
|
||||
);
|
||||
|
||||
expect(response.headers.get("Set-Cookie")).toBeNull();
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ export default (app: Hono) =>
|
|||
return returnError(
|
||||
context.req.query(),
|
||||
"invalid_grant",
|
||||
"Invalid email or password",
|
||||
"Invalid identifier or password",
|
||||
);
|
||||
|
||||
// Try and import the key
|
||||
|
|
|
|||
Loading…
Reference in a new issue