Skip to content

Commit

Permalink
Verify account only if a request is in progress
Browse files Browse the repository at this point in the history
The account verification page should only proceed and allow updating the
user's profile (including resetting their password) when there is an
active activation token.

Fixes #22690

Backported from cfbc5e5
  • Loading branch information
dregad committed Apr 16, 2017
1 parent 71fe6b5 commit 14c61a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verify.php
Expand Up @@ -63,7 +63,7 @@

$t_token_confirm_hash = token_get_value( TOKEN_ACCOUNT_ACTIVATION, $f_user_id );

if( $f_confirm_hash != $t_token_confirm_hash ) {
if( $t_token_confirm_hash == null || $f_confirm_hash !== $t_token_confirm_hash ) {
trigger_error( ERROR_LOST_PASSWORD_CONFIRM_HASH_INVALID, ERROR );
}

Expand Down

0 comments on commit 14c61a8

Please sign in to comment.