From ee13fcf3adacd1a79a3dab21e3caf187f72be3a4 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Fri, 19 Oct 2018 14:39:42 -0500 Subject: [PATCH] getToken -> getQueryToken --- embark-ui/src/containers/AppContainer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embark-ui/src/containers/AppContainer.js b/embark-ui/src/containers/AppContainer.js index e47ca54b..a53cb29b 100644 --- a/embark-ui/src/containers/AppContainer.js +++ b/embark-ui/src/containers/AppContainer.js @@ -23,12 +23,12 @@ import { getCredentials, getAuthenticationError, getProcesses, getTheme } from ' const qs = require('qs'); class AppContainer extends Component { - getToken() { + getQueryToken() { return qs.parse(this.props.location.search, {ignoreQueryPrefix: true}).token; } queryStringAuthenticate() { - const token = this.getToken(); + const token = this.getQueryToken(); if (!token) { return; @@ -54,7 +54,7 @@ class AppContainer extends Component { this.props.authenticate(this.props.credentials.host, this.props.credentials.token); } - if (this.getToken() && this.props.credentials.authenticated) { + if (this.getQueryToken() && this.props.credentials.authenticated) { const loc = Object.assign({}, this.props.location); loc.search = loc.search.replace( /(\?|&?)(token=[\w-]*)(&?)/,