error mmio login
This commit is contained in:
parent
4b6d845f54
commit
ff118ba921
@ -77,11 +77,12 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const token = res.data.token
|
const token = res.data.token
|
||||||
|
const operador = jwt_decode(token)
|
||||||
|
|
||||||
localStorage.setItem('token', token)
|
localStorage.setItem('token', token)
|
||||||
await this.$recaptcha.reset()
|
await this.$recaptcha.reset()
|
||||||
this.updateIsLoading(false)
|
this.updateIsLoading(false)
|
||||||
if (res.data.operador.tipoUsuario.id_tipo_usuario === 2)
|
if (operador.tipoUsuario.id_tipo_usuario === 2)
|
||||||
this.$router.push(
|
this.$router.push(
|
||||||
'/admin/configuracion/instituciones/buscar_institucion'
|
'/admin/configuracion/instituciones/buscar_institucion'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user