1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Don't require admin privileges to verify email addresses

Summary: Fixes T2821. In D5386 we locked most of this app down, but missed one controller which needs to be accessible by non-admins (this controller should probably be in some other app, like auth, in the long term).

Test Plan: @shanemhansen confirmed this fixed his install

Reviewers: chad, AnhNhan

Reviewed By: chad

CC: shanemhansen, aran

Maniphest Tasks: T2821

Differential Revision: https://secure.phabricator.com/D5422
This commit is contained in:
epriestley 2013-03-22 14:39:43 -07:00
parent 178d732575
commit cb84cb1c0f

View file

@ -9,6 +9,10 @@ final class PhabricatorEmailVerificationController
$this->code = $data['code'];
}
public function shouldRequireAdmin() {
return false;
}
public function shouldRequireEmailVerification() {
// Since users need to be able to hit this endpoint in order to verify
// email, we can't ever require email verification here.