Repair human friendly errors with additional message
This commit is contained in:
parent
5aadd3793d
commit
84f376f1ea
|
@ -51,12 +51,16 @@ export function Signin( props ) {
|
||||||
//console.log(code)
|
//console.log(code)
|
||||||
// setErrorCode( code )
|
// setErrorCode( code )
|
||||||
switch(code) {
|
switch(code) {
|
||||||
case"auth/invalid-email":
|
case "auth/invalid-email" :
|
||||||
setErrorCode("The email address is invalid")
|
setErrorCode("The email address is invalid")
|
||||||
break
|
break
|
||||||
case"auth/invalid-login-credentials":
|
case "auth/invalid-login-credentials" :
|
||||||
setErrorCode("Credentials supplied is not in our system")
|
setErrorCode("Credentials supplied is not in our system")
|
||||||
break
|
break
|
||||||
|
case "auth/user-not-found" :
|
||||||
|
setErrorCode("Credentials supplied is not in our system")
|
||||||
|
break
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue