mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
Fix login error messages
This commit is contained in:
parent
0b715c2dd2
commit
2ce8ceab78
@ -16,7 +16,7 @@ export const handler: MutationHook<null, {}, LoginBody> = {
|
||||
if (!(email && password)) {
|
||||
throw new CommerceError({
|
||||
message:
|
||||
'A first name, last name, email and password are required to login',
|
||||
'An email and password are required to login',
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ export const handler: MutationHook<null, {}, CustomerAccessTokenCreateInput> = {
|
||||
if (!(email && password)) {
|
||||
throw new CommerceError({
|
||||
message:
|
||||
'A first name, last name, email and password are required to login',
|
||||
'An email and password are required to login',
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user