aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/LoginButton.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js
index 2016e8536..6f698e165 100644
--- a/vnext/src/components/LoginButton.js
+++ b/vnext/src/components/LoginButton.js
@@ -33,7 +33,7 @@ export default class LoginButton extends React.Component {
login(event) {
event.preventDefault();
let headers = new Headers();
- headers.append('Authorization', 'Basic ' + window.btoa(this.state.username + ":" + this.state.password));
+ headers.append('Authorization', 'Basic ' + window.btoa(unescape(encodeURIComponent(this.state.username + ":" + this.state.password))));
fetch('https://api.juick.com/auth', {
method: 'GET',
credentials: 'omit',