Merge pull request #1297 from rinsuki/fix/1296-broken

#1296 で壊してしまったのを直した
This commit is contained in:
syuilo 2018-03-26 16:22:35 +09:00 committed by GitHub
commit 6417c3b780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ export default Vue.extend({
(this as any).api('signin', { (this as any).api('signin', {
username: this.username, username: this.username,
password: this.password, password: this.password,
token: this.user && this.user.two_factor_enabled ? this.token : undefined token: this.user && this.user.account.two_factor_enabled ? this.token : undefined
}).then(() => { }).then(() => {
location.reload(); location.reload();
}).catch(() => { }).catch(() => {