-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix - basic auth fix #453
Conversation
… edacpFullSiteScanApp Adds EDAC\Helpers\is_basic_auth() replaces get_option( 'edac_password_protected') checks with EDAC\Helpers\is_basic_auth() Adds basicAuth to js edac_editor_app Adds auth warning to editor page when user saves a post in free & site requires auth
edac_check_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) | ||
) && | ||
\EDAC\Helpers::is_basic_auth() | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only show the "Whoops! It looks like your website is currently password protected..." message when editing pages if Pro is not valid/active and we've tested that basic auth is in place.
let HEADERS; | ||
if (typeof (edacp_full_site_scan_app) === 'undefined') { | ||
if (typeof (edacpFullSiteScanApp) === 'undefined') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This misnamed variable is the root cause of the issue b/c the user/pass were not being passed so auth failed.
|
||
|
||
checkApi().then((status) => { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're using serverside to test if auth is in place, so no need for this.
d033089
to
ef67d44
Compare
This PR: