Minor tweak to activation link

This commit is contained in:
Ultimate Member
2016-01-22 19:14:43 +02:00
parent 5851235615
commit a67c0c94d0
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -112,9 +112,8 @@ class UM_Permalinks {
um_fetch_user( $user_id );
if ( um_user('account_status') != 'awaiting_email_confirmation' ) wp_die('The activation link you used is invalid or has expired.');
if ( strtolower($_REQUEST['hash']) !== strtolower( 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( __( 'This activation link is expired or have already been used.','ultimatemember' ) );
$ultimatemember->user->approve();
$redirect = ( um_user('url_email_activate') ) ? um_user('url_email_activate') : um_get_core_page('login', 'account_active');