summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/signup.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/signup.vue b/src/client/app/common/views/components/signup.vue
index 7e8d2846aa..f7c4f4bf1e 100644
--- a/src/client/app/common/views/components/signup.vue
+++ b/src/client/app/common/views/components/signup.vue
@@ -146,8 +146,9 @@ export default Vue.extend({
this.$root.api('signin', {
username: this.username,
password: this.password
- }, true).then(() => {
- location.href = '/';
+ }, true).then(res => {
+ localStorage.setItem('i', res.i);
+ location.reload();
});
}).catch(() => {
alert(this.$t('some-error'));