mirror of
https://github.com/WGDashboard/WGDashboard-PRW.git
synced 2026-08-03 22:42:57 +00:00
chore: finish merger
This commit is contained in:
@@ -56,23 +56,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
GetLocale,
|
GetLocale,
|
||||||
<<<<<<< HEAD
|
|
||||||
async auth(){
|
|
||||||
if (this.formValid){
|
|
||||||
this.loading = true
|
|
||||||
await fetchPost("/api/auth", this.data, (response) => {
|
|
||||||
if (response.status){
|
|
||||||
this.loginError = false;
|
|
||||||
this.$refs["signInBtn"].classList.add("signedIn")
|
|
||||||
if (response.message){
|
|
||||||
this.$router.push('/welcome')
|
|
||||||
}else{
|
|
||||||
if (this.store.Redirect !== undefined){
|
|
||||||
this.$router.push(this.store.Redirect)
|
|
||||||
}else{
|
|
||||||
this.$router.push('/')
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
async auth() {
|
async auth() {
|
||||||
if (!this.formValid) {
|
if (!this.formValid) {
|
||||||
return;
|
return;
|
||||||
@@ -91,7 +74,6 @@ export default {
|
|||||||
this.$router.push(this.store.Redirect);
|
this.$router.push(this.store.Redirect);
|
||||||
} else {
|
} else {
|
||||||
this.$router.push("/");
|
this.$router.push("/");
|
||||||
>>>>>>> b5c0236 (chore: rework update checking and minor changes in files)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.store.newMessage("Server", "Failed to authenticate", "danger");
|
this.store.newMessage("Server", "Failed to authenticate", "danger");
|
||||||
|
|||||||
Reference in New Issue
Block a user