pricing login modal : added password strength description, and lost password link
This commit is contained in:
@@ -129,15 +129,21 @@ export default {
|
||||
},
|
||||
userLogin ({ dispatch, state }, credentials) {
|
||||
return new Promise((resolve, reject) => {
|
||||
dispatch('getToken', credentials).then(() => {
|
||||
dispatch('getUser').then(userdata => {
|
||||
console.log('User Loggedin')
|
||||
if (state.isAdmin) {
|
||||
window.location.reload(true)
|
||||
}
|
||||
resolve()
|
||||
dispatch('getToken', credentials)
|
||||
// TODO: catch failed login
|
||||
.then(() => {
|
||||
dispatch('getUser').then(userdata => {
|
||||
console.log('User Loggedin')
|
||||
if (state.isAdmin) {
|
||||
window.location.reload(true)
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
})
|
||||
.catch(error => {
|
||||
console.warn('Issue with Dispatch getToken', error)
|
||||
Promise.reject(error)
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
getToken ({ dispatch, commit, state }, credentials) {
|
||||
|
Reference in New Issue
Block a user