From a2828ebfc40872c94fa32918f133eafbc2ab5430 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Mon, 4 Jan 2016 12:40:30 +0800 Subject: [PATCH] Fix activation link --- core/um-permalinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-permalinks.php b/core/um-permalinks.php index 5dcd3246..e8a4fc99 100644 --- a/core/um-permalinks.php +++ b/core/um-permalinks.php @@ -82,7 +82,7 @@ class UM_Permalinks { if ( um_user('account_status') != 'awaiting_email_confirmation' ) wp_die('The activation link you used is invalid or has expired.'); - if ( $_REQUEST['hash'] !== um_user('account_secret_hash') ) wp_die('The secret key provided does not match this one for the user.'); + if ( strtolower($_REQUEST['hash']) !== strtolower( um_user('account_secret_hash') ) ) wp_die('The secret key provided does not match this one for the user.'); $ultimatemember->user->approve(); $redirect = ( um_user('url_email_activate') ) ? um_user('url_email_activate') : um_get_core_page('login', 'account_active');