You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2017/07/27 08:42:23 UTC

[couchdb-fauxton] branch master updated: return response on login error (#941)

This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git


The following commit(s) were added to refs/heads/master by this push:
     new 95da5e2  return response on login error (#941)
95da5e2 is described below

commit 95da5e2475d1315774d57a88812ec5b546e04171
Author: garren smith <ga...@gmail.com>
AuthorDate: Thu Jul 27 10:42:21 2017 +0200

    return response on login error (#941)
---
 app/addons/auth/actions.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/addons/auth/actions.js b/app/addons/auth/actions.js
index e2e2b51..7bec85a 100644
--- a/app/addons/auth/actions.js
+++ b/app/addons/auth/actions.js
@@ -53,7 +53,8 @@ export const login = (username, password, urlBack) => {
   return Api.login({name: username, password})
   .then(resp => {
     if (resp.error) {
-      return errorHandler({message: resp.reason});
+      errorHandler({message: resp.reason});
+      return resp;
     }
 
     let msg = app.i18n.en_US['auth-logged-in'];

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].