Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13965645
D7615.id.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
D7615.id.diff
View Options
Index: src/applications/auth/management/PhabricatorAuthManagementRecoverWorkflow.php
===================================================================
--- src/applications/auth/management/PhabricatorAuthManagementRecoverWorkflow.php
+++ src/applications/auth/management/PhabricatorAuthManagementRecoverWorkflow.php
@@ -72,7 +72,8 @@
$console = PhutilConsole::getConsole();
$console->writeOut(
pht(
- 'Use this link to recover access to the "%s" account:',
+ 'Use this link to recover access to the "%s" account from the web '.
+ 'interface:',
$username));
$console->writeOut("\n\n");
$console->writeOut(" %s", $user->getEmailLoginURI());
Index: src/applications/people/storage/PhabricatorUser.php
===================================================================
--- src/applications/people/storage/PhabricatorUser.php
+++ src/applications/people/storage/PhabricatorUser.php
@@ -495,8 +495,18 @@
}
}
$token = $this->generateEmailToken($email);
- $uri = PhabricatorEnv::getProductionURI('/login/etoken/'.$token.'/');
+
+ $uri = '/login/etoken/'.$token.'/';
+ try {
+ $uri = PhabricatorEnv::getProductionURI($uri);
+ } catch (Exception $ex) {
+ // If a user runs `bin/auth recover` before configuring the base URI,
+ // just show the path. We don't have any way to figure out the domain.
+ // See T4132.
+ }
+
$uri = new PhutilURI($uri);
+
return $uri->alter('email', $email->getAddress());
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 17 2024, 3:21 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720405
Default Alt Text
D7615.id.diff (1 KB)
Attached To
Mode
D7615: Allow "bin/auth recover" to succeed before phabricator.base-uri is set
Attached
Detach File
Event Timeline
Log In to Comment