summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/App.js4
-rw-r--r--src/components/Login.js3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/components/App.js b/src/components/App.js
index 9ead9c5..636c672 100644
--- a/src/components/App.js
+++ b/src/components/App.js
@@ -56,8 +56,8 @@ class App extends React.Component {
clearToken={this.clearToken}
/>
);
- // if (this.state.token === null)
- // return <Login setToken={this.setToken} setError={this.setError} />;
+ if (this.state.token === null)
+ return <Login setToken={this.setToken} setError={this.setError} />;
return (
<Router>
<Header clearToken={this.clearToken} />
diff --git a/src/components/Login.js b/src/components/Login.js
index 209871e..9b45817 100644
--- a/src/components/Login.js
+++ b/src/components/Login.js
@@ -26,8 +26,7 @@ class Login extends React.Component {
// NOTE: btoa() limits email, password to ASCII
login(email, password) {
- const url = process.env.JWT_URL + "/api/v1.0/auth";
- fetch(url, {
+ fetch(process.env.JWT_URL, {
method: "POST",
headers: { Authorization: "Basic " + btoa(email + ":" + password) }
})