Cookieを使わないように

This commit is contained in:
syuilo
2018-11-28 16:19:02 +09:00
parent f257853906
commit 4bbb7eded3
5 changed files with 7 additions and 12 deletions

View File

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