Page MenuHomePhorge

D25601.1743012684.diff
No OneTemporary

D25601.1743012684.diff

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
@@ -70,7 +70,11 @@
pht('You must be an administrator to rename users.'));
}
- if (!strlen($new)) {
+ if ($this->generateOldValue($object) === $new) {
+ $errors[] = $this->newInvalidError(
+ pht('New username cannot be the old username.'),
+ $xaction);
+ } else if (!strlen($new)) {
$errors[] = $this->newInvalidError(
pht('New username is required.'),
$xaction);

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 18:11 (4 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1149488
Default Alt Text
D25601.1743012684.diff (766 B)

Event Timeline