Fix checkpoint behavior to only work when a token is provided
This commit is contained in:
parent
4209be021e
commit
dec969bf9f
2 changed files with 5 additions and 1 deletions
|
@ -37,6 +37,10 @@
|
|||
};
|
||||
},
|
||||
mounted: function () {
|
||||
if ((this.$route.query.token || '').length < 1) {
|
||||
return this.$router.push({ name: 'login' });
|
||||
}
|
||||
|
||||
this.$refs.code.focus();
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue