Page MenuHomePhorge

D25601.1737213036.diff
No OneTemporary

D25601.1737213036.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
@@ -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

Mime Type
text/plain
Expires
Sat, Jan 18, 15:10 (9 h, 40 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1120727
Default Alt Text
D25601.1737213036.diff (700 B)

Event Timeline