Regresamos al login cuando se inscribe
This commit is contained in:
@@ -51,7 +51,6 @@ export default {
|
||||
methods: {
|
||||
login() {
|
||||
if (this.usuario && this.password && !this.error) {
|
||||
console.log(typeof this.usuario)
|
||||
const data = {
|
||||
usuario: this.usuario,
|
||||
password: this.password,
|
||||
@@ -67,7 +66,6 @@ export default {
|
||||
this.$router.push(`/${'admin'}`)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
this.error = 'is-danger'
|
||||
this.updateIsLoading(false)
|
||||
this.imprimirError(err.response.data)
|
||||
|
||||
@@ -95,7 +95,10 @@ export default {
|
||||
hasIcon: true,
|
||||
iconPack: 'mdi',
|
||||
icon: 'check-circle',
|
||||
onConfirm: () => onConfirm(),
|
||||
onConfirm: () => {
|
||||
this.$router.push(`/`)
|
||||
localStorage.clear()
|
||||
},
|
||||
})
|
||||
},
|
||||
imprimirWarning(
|
||||
|
||||
Reference in New Issue
Block a user