1.2.6 password recovery TRI-108
This commit is contained in:
@@ -1219,7 +1219,7 @@ section.login {
|
||||
margin-bottom: 120px;
|
||||
}
|
||||
|
||||
section.login>h1 {
|
||||
section.login>h1, div.recovery_pas>h1 {
|
||||
color: #272424;
|
||||
text-align: center;
|
||||
/* Heading 1 */
|
||||
@@ -1231,7 +1231,7 @@ section.login>h1 {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
section.login>form {
|
||||
section.login>form, div.recovery_pas>form {
|
||||
max-width: 420px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
@@ -3366,16 +3366,20 @@ details[open] summary ~ *{
|
||||
|
||||
/*END news articles all*/
|
||||
|
||||
.login_form.hide{
|
||||
.login.hide{
|
||||
display: none;
|
||||
}
|
||||
.password_recovery{
|
||||
.recovery_pas{
|
||||
display: none;
|
||||
}
|
||||
.password_recovery.show{
|
||||
.recovery_pas.show{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.recovery.hide{
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ function SendLoginForm(el){
|
||||
let msr = sessionStorage.getItem('mailingSubscribeRequired')
|
||||
formData.set('mailingSubscribeRequired',msr)
|
||||
}
|
||||
document.getElementsByClassName('recovery')[0].classList.add('hide')
|
||||
|
||||
|
||||
|
||||
@@ -25,20 +26,21 @@ function SendLoginForm(el){
|
||||
success: function(data){
|
||||
|
||||
|
||||
location.href = data.redirect_url//`/profile/page/dashboard/`
|
||||
window.sessionStorage.removeItem('mailingSubscribeRequired')
|
||||
window.sessionStorage.removeItem('email')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(url === '/user_account/login/'){
|
||||
location.href = data.redirect_url//`/profile/page/dashboard/`
|
||||
window.sessionStorage.removeItem('mailingSubscribeRequired')
|
||||
window.sessionStorage.removeItem('email')
|
||||
} else if(url === '/user_account/password_recovery/'){
|
||||
document.getElementById('password_recovery').innerHTML = data.message
|
||||
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
document.querySelector(".login").innerHTML = data.responseJSON.html
|
||||
document.getElementsByClassName('recovery')[0].classList.remove('hide')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1396,8 +1396,8 @@ function showTabBtn(el) {
|
||||
}
|
||||
|
||||
function showForm(){
|
||||
let hide_form = document.getElementsByClassName('login_form')
|
||||
let show_form = document.getElementsByClassName('password_recovery')
|
||||
let hide_form = document.getElementsByClassName('login')
|
||||
let show_form = document.getElementsByClassName('recovery_pas')
|
||||
hide_form[0].classList.add('hide')
|
||||
show_form[0].classList.add('show')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user