gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Update status code for invalid credent


From: gnunet
Subject: [libeufin] branch master updated: Update status code for invalid credentials
Date: Fri, 03 Jul 2020 06:58:05 +0200

This is an automated email from the git hooks/post-receive script.

heng-yeow pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 1bbf041  Update status code for invalid credentials
1bbf041 is described below

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

    Update status code for invalid credentials
---
 frontend/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
index 47f67f7..5fd0d30 100644
--- 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');

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]