Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15413599
D7618.id17199.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7618.id17199.diff
View Options
Index: src/applications/auth/controller/PhabricatorAuthNeedsApprovalController.php
===================================================================
--- src/applications/auth/controller/PhabricatorAuthNeedsApprovalController.php
+++ src/applications/auth/controller/PhabricatorAuthNeedsApprovalController.php
@@ -11,6 +11,10 @@
return false;
}
+ public function shouldRequireEnabledUser() {
+ return false;
+ }
+
public function processRequest() {
$request = $this->getRequest();
$user = $request->getUser();
Index: src/applications/auth/controller/PhabricatorEmailVerificationController.php
===================================================================
--- src/applications/auth/controller/PhabricatorEmailVerificationController.php
+++ src/applications/auth/controller/PhabricatorEmailVerificationController.php
@@ -15,10 +15,22 @@
return false;
}
+ public function shouldRequireEnabledUser() {
+ // Unapproved users are allowed to verify their email addresses. We'll kick
+ // disabled users out later.
+ return false;
+ }
+
public function processRequest() {
$request = $this->getRequest();
$user = $request->getUser();
+ if ($user->getIsDisabled()) {
+ // We allowed unapproved and disabled users to hit this controller, but
+ // want to kick out disabled users now.
+ return new Aphront400Response();
+ }
+
$email = id(new PhabricatorUserEmail())->loadOneWhere(
'userPHID = %s AND verificationCode = %s',
$user->getPHID(),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 7:54 PM (4 h, 27 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7447856
Default Alt Text
D7618.id17199.diff (1 KB)
Attached To
Mode
D7618: Slightly improve behavior for unverified + unapproved users
Attached
Detach File
Event Timeline
Log In to Comment