Automatically login after registration

Closes #186

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-07 13:47:46 +02:00
parent 2fc24023cc
commit c58c9e5f97
9 changed files with 54 additions and 25 deletions

View File

@@ -157,6 +157,7 @@ export default class Home extends Vue {
const lastWeek = new Date();
lastWeek.setDate(new Date().getDate() - 7);
if (this.currentUser.isLoggedIn === false) return;
const { data } = await this.$apollo.query({
query: LOGGED_USER_PARTICIPATIONS,
variables: {