Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2608442
D25601.1731181912.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
700 B
Referenced Files
None
Subscribers
None
D25601.1731181912.diff
View Options
diff --git a/src/applications/people/xaction/PhabricatorUserUsernameTransaction.php b/src/applications/people/xaction/PhabricatorUserUsernameTransaction.php
--- a/src/applications/people/xaction/PhabricatorUserUsernameTransaction.php
+++ b/src/applications/people/xaction/PhabricatorUserUsernameTransaction.php
@@ -78,6 +78,10 @@
$errors[] = $this->newInvalidError(
PhabricatorUser::describeValidUsername(),
$xaction);
+ } else if ($this->generateOldValue($object) === $new) {
+ $errors[] = $this->newInvalidError(
+ pht('New username cannot be the old username.'),
+ $xaction);
}
$user = id(new PhabricatorPeopleQuery())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 19:51 (18 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
963172
Default Alt Text
D25601.1731181912.diff (700 B)
Attached To
Mode
D25601: Fix exception trying to rename user to their previous username
Attached
Detach File
Event Timeline
Log In to Comment