Verified Commit 021da793 authored by Kevin Cristiano's avatar Kevin Cristiano 🌎 Committed by Kevin Cristiano
Browse files

Patch for Login and Lost Passwords - TML

Updated 2022-06-13
parent c657d763
......@@ -1006,7 +1006,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
}
elseif (email_exists($params['mail'])) {
$errors[$emailName] = ts('The email address %1 already has an account associated with it. <a href="%2">Have you forgotten your password?</a>',
[1 => $params['mail'], 2 => wp_lostpassword_url()]
[1 => $params['mail'], 2 => '/lost-passwords']
);
}
}
......@@ -1092,7 +1092,9 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
* @inheritDoc
*/
public function getLoginURL($destination = '') {
return wp_login_url($destination);
$config = CRM_Core_Config::singleton();
$loginURL = '/login';
return $loginURL;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment