summaryrefslogtreecommitdiff
path: root/ui/app/components/login.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/login.js')
-rw-r--r--ui/app/components/login.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/login.js b/ui/app/components/login.js
index 562ab5ac..059551f9 100644
--- a/ui/app/components/login.js
+++ b/ui/app/components/login.js
@@ -356,7 +356,7 @@ class Login extends React.Component {
}
doLogin() {
- let account = Account.find(this.state.username)
+ let account = Account.find_or_add(this.state.username)
account.login(this.state.password).then(
account => {
this.setState({loading: false})