Allowing auth to be disabled in config.
This commit is contained in:
@@ -64,6 +64,12 @@ async function login() {
|
||||
}
|
||||
}
|
||||
|
||||
function mounted() {
|
||||
if (!this.$store.state.auth.enabled) {
|
||||
this.$router.replace({ name: 'not-found' });
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -73,6 +79,7 @@ export default {
|
||||
error: null,
|
||||
};
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
login,
|
||||
},
|
||||
|
||||
@@ -73,6 +73,12 @@ async function signup() {
|
||||
}
|
||||
}
|
||||
|
||||
function mounted() {
|
||||
if (!this.$store.state.auth.enabled) {
|
||||
this.$router.replace({ name: 'not-found' });
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -83,6 +89,7 @@ export default {
|
||||
error: null,
|
||||
};
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
signup,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user