Page MenuHomePhorge

D25601.1731166022.diff
No OneTemporary

D25601.1731166022.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, Nov 9, 15:27 (19 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
963172
Default Alt Text
D25601.1731166022.diff (700 B)

Event Timeline