Skip to content

Commit 14c61a8

Browse files
committed
Verify account only if a request is in progress
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
1 parent 71fe6b5 commit 14c61a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

verify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
$t_token_confirm_hash = token_get_value( TOKEN_ACCOUNT_ACTIVATION, $f_user_id );
6565

66-
if( $f_confirm_hash != $t_token_confirm_hash ) {
66+
if( $t_token_confirm_hash == null || $f_confirm_hash !== $t_token_confirm_hash ) {
6767
trigger_error( ERROR_LOST_PASSWORD_CONFIRM_HASH_INVALID, ERROR );
6868
}
6969

0 commit comments

Comments
 (0)