Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Sources/Actions/Activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,13 @@ protected function __construct()
// Load the member.
$this->loadMember();

// Nobody by that name or id. execute() shows the form that asks for
// one, but only if it gets that far: the check below reads $this->member
// first, and loadMember() leaves it unassigned when it finds nothing.
if (!isset($this->member)) {
return;
}

// Already activated, so redirect to the login screen.
if (!\in_array((int) $this->member->is_activated, [User::NOT_ACTIVATED, User::UNVALIDATED])) {
Utils::redirectexit('action=login');
Expand Down