Project

General

Profile

Actions

Bug #12108

closed

Password reset styling/scripts don't work correctly

Added by Boone Gorges over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2019-11-18
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

When you go through the password-reset process beginning at https://commons.gc.cuny.edu/wp-login.php?action=lostpassword&error=invalidkey, the next step (after getting the key) requires you to enter a new password. This interface has a password reset strength meter. But the scripts required for this UI to work - jquery, user-profile, etc - are not loaded properly. This is a result of the header-juggling in wp-content/mu-plugins/cac-login-template.php; see #3780.

I tried some tricks to make them work - force-enqueuing scripts, etc - but everything I tried either doesn't work or is very hacky (like harvesting all the script tags from the original header and dumping them into the new header). It's like WP clears out the enqueue stack in order to prevent jQuery from loading twice, or something like that. Ray, could you have a look and see whether you've got any ideas? Worst case, we could probably manually put the relevant script tags in the login header, but I'm unsure of the ramifications of this across themes.


Files

Screenshot_2019-11-18_16-43-26.png (75.4 KB) Screenshot_2019-11-18_16-43-26.png Boone Gorges, 2019-11-18 06:22 PM
password-strength.png (183 KB) password-strength.png Raymond Hoh, 2019-11-22 02:06 AM

Related issues

Related to CUNY Academic Commons - Bug #6644: White Screen at Login PgeReporter FeedbackRaymond Hoh2016-11-08

Actions
Related to CUNY Academic Commons - Bug #3780: wp-login.php template stylingResolvedRaymond Hoh2015-02-02

Actions
Actions

Also available in: Atom PDF