diff options
Diffstat (limited to 'www/app/components/login.js')
-rw-r--r-- | www/app/components/login.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/app/components/login.js b/www/app/components/login.js index 4f7b6289..fe4ef5b2 100644 --- a/www/app/components/login.js +++ b/www/app/components/login.js @@ -274,7 +274,7 @@ class Login extends React.Component { if (!this.maySubmit()) { return } this.setState({loading: true}) - let account = new Account(this.state.username) + let account = Account.find(this.state.username) account.login(this.state.password).then( account => { this.setState({loading: false}) |