Skip to content

Commit

Permalink
This isn't necessary; there's no special treatment for users/verify-e…
Browse files Browse the repository at this point in the history
…mail requests
  • Loading branch information
brandonkelly committed Mar 1, 2017
1 parent da8133b commit d759830
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/web/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -960,16 +960,13 @@ private function _checkRequestType()
$setPasswordPath = trim($configService->getLocalized('setPasswordPath'), '/');
}

$verifyEmailPath = 'verifyemail';

if (
($triggerMatch = ($firstSegment == $configService->get('actionTrigger') && count($this->_segments) > 1)) ||
($actionParam = $this->getParam('action')) !== null ||
($specialPath = in_array($this->_path, [
$loginPath,
$logoutPath,
$setPasswordPath,
$verifyEmailPath
], true))
) {
$this->_isActionRequest = true;
Expand All @@ -984,8 +981,6 @@ private function _checkRequestType()
$this->_actionSegments = ['users', 'login'];
} else if ($this->_path == $logoutPath) {
$this->_actionSegments = ['users', 'logout'];
} else if ($this->_path == $verifyEmailPath) {
$this->_actionSegments = ['users', 'verify-email'];
} else {
$this->_actionSegments = ['users', 'set-password'];
}
Expand Down

0 comments on commit d759830

Please # to comment.