Verified Commit a8c680db authored by Kevin Cristiano's avatar Kevin Cristiano 🌎 Committed by Kevin Cristiano

Patch for TML and ArtsW login and lost password

Signed-off-by: Kevin Cristiano's avatarKevin Cristiano <kcristiano@tadpole.cc>
Signed-off-by: Kevin Cristiano's avatarKevin Cristiano <kcristiano@kcristiano.com>
parent ccd273ad
...@@ -670,7 +670,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { ...@@ -670,7 +670,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
} }
elseif (email_exists($params['mail'])) { 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>', $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']
); );
} }
} }
...@@ -757,7 +757,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { ...@@ -757,7 +757,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
*/ */
public function getLoginURL($destination = '') { public function getLoginURL($destination = '') {
$config = CRM_Core_Config::singleton(); $config = CRM_Core_Config::singleton();
$loginURL = wp_login_url(); $loginURL = 'login';
return $loginURL; return $loginURL;
} }
......
Markdown is supported
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