You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by am...@apache.org on 2018/07/18 19:36:20 UTC

[couchdb-fauxton] branch master updated: Fix how local creds are checked (#1106)

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

amaranhao 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 fb4c267  Fix how local creds are checked (#1106)
fb4c267 is described below

commit fb4c267600564b0240a086bf09021ec7151aaf15
Author: Antonio Maranhao <30...@users.noreply.github.com>
AuthorDate: Wed Jul 18 15:36:17 2018 -0400

    Fix how local creds are checked (#1106)
---
 app/addons/replication/components/newreplication.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/addons/replication/components/newreplication.js b/app/addons/replication/components/newreplication.js
index 8a1fd7f..38ca807 100644
--- a/app/addons/replication/components/newreplication.js
+++ b/app/addons/replication/components/newreplication.js
@@ -12,7 +12,7 @@
 
 import base64 from 'base-64';
 import React from 'react';
-import app from '../../../app';
+import Helpers from '../../../helpers';
 import {json} from '../../../core/ajax';
 import FauxtonAPI from '../../../core/api';
 import {ReplicationSource} from './source';
@@ -101,7 +101,7 @@ export default class NewReplicationController extends React.Component {
   }
 
   checkCredentials(username, password) {
-    return json(app.host + '/', 'GET', {
+    return json(Helpers.getServerUrl('/'), 'GET', {
       credentials: 'omit',
       headers: {
         'Authorization':'Basic ' + base64.encode(username + ':' + password)