pricing login modal : added password strength description, and lost password link
This commit is contained in:
@@ -2251,6 +2251,11 @@ article.card {
|
||||
#pricing-modal-login-register #login-register > section form input[type="email"],
|
||||
#pricing-modal-login-register #login-register > section form input[type="password"] {
|
||||
max-width: 11em; }
|
||||
#pricing-modal-login-register #login-register > section form#user-login-form #edit-pass--description,
|
||||
#pricing-modal-login-register #login-register > section form #edit-pass-pass1--description {
|
||||
display: block;
|
||||
max-width: 16em;
|
||||
font-size: 0.693em; }
|
||||
|
||||
#main-content form.commerce-checkout-flow {
|
||||
max-width: 641px; }
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1469,6 +1469,12 @@ article.card{
|
||||
input[type="password"]{
|
||||
max-width: 11em;
|
||||
}
|
||||
&#user-login-form #edit-pass--description,
|
||||
#edit-pass-pass1--description{
|
||||
display: block;
|
||||
max-width: 16em;
|
||||
font-size: 0.693em;
|
||||
}
|
||||
}
|
||||
}
|
||||
section.login{
|
||||
|
@@ -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