[Client] Drop apiViaStream option

Resolve #3911
This commit is contained in:
syuilo
2019-01-18 16:46:56 +09:00
parent 4ba43b69b6
commit 9fc1cc5255
7 changed files with 36 additions and 74 deletions

View File

@@ -72,7 +72,7 @@ export default Vue.extend({
username: this.username,
password: this.password,
token: this.user && this.user.twoFactorEnabled ? this.token : undefined
}, true).then(res => {
}).then(res => {
localStorage.setItem('i', res.i);
location.reload();
}).catch(() => {

View File

@@ -142,11 +142,11 @@ export default Vue.extend({
password: this.password,
invitationCode: this.invitationCode,
'g-recaptcha-response': this.meta.enableRecaptcha ? (window as any).grecaptcha.getResponse() : null
}, true).then(() => {
}).then(() => {
this.$root.api('signin', {
username: this.username,
password: this.password
}, true).then(res => {
}).then(res => {
localStorage.setItem('i', res.i);
location.reload();
});