diff options
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/components/LoginButton.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js index 2016e853..6f698e16 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', |