libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 1bbf0419eb957881cebc19e5ae854a04116c7c10
parent e783f1210223f6d976c347274b5d573a955e1d08
Author: tanhengyeow <E0032242@u.nus.edu>
Date:   Fri,  3 Jul 2020 12:57:56 +0800

Update status code for invalid credentials

Diffstat:
Mfrontend/src/actions/auth.tsx | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/actions/auth.tsx b/frontend/src/actions/auth.tsx @@ -34,7 +34,7 @@ export const login = (nexusURL: string, username: string, password: string) => { .then((response) => { if (response.ok) { return response.json(); - } else if (response.status === 401) { + } else if (response.status === 403) { throw new Error('Invalid credentials'); } throw new Error('Cannot connect to server');