andyhqtran / divi-100-login-page

GNU General Public License v3.0
35 stars 23 forks source link

Lost Password Page :: Reset password #27

Open eduard-ungureanu opened 6 years ago

eduard-ungureanu commented 6 years ago

The button for Resetting a password is not working, also on the reset password page, there should be 2 fields by default: New Password field and the Re-enter new password field.

Thank you in advance Best Regards.

nzsmith24 commented 6 years ago

I'm having the same problem.

rolfhecken commented 6 years ago

Same here

asimbhuta commented 6 years ago

I wouldn't hold your breath. This in my opinion has a 1% chance of getting resolved. Devs have gone awol on this issue.

cholosurfer commented 5 years ago

Hi guys,

To fix this you need to modify divi-100-login-page/assets/js/scripts.js file, just add a condition to avoid that change, after lines 45 and 63, like this:

/**
* Appends input to parent
*/
if( !$('.login-action-rp').length ) { // Not in reset password page
   $(this)
   .parent()
   .parent()
   .append($(this));
}
/**
* Replace <p /> with <div />
*/
if( !$('.login-action-rp').length ) { // Not in reset password page
   $(this)
   .parent()
   .addClass('divi-login__input')
   .replaceWith('<div class="divi-login__input">' + $(this).parent().html() + '</div>');
}

Hope it helps someone!

bouda19 commented 5 years ago

It is works !! Thanks a lot ^^