Fix activation link

This commit is contained in:
champsupertramp
2016-01-04 12:40:30 +08:00
parent 6e7d1aef62
commit a2828ebfc4
+1 -1
View File
@@ -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');