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 4f7b628..fe4ef5b 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}) |