Page MenuHomePhorge

D25601.1731181912.diff
No OneTemporary

D25601.1731181912.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, 19:51 (18 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
963172
Default Alt Text
D25601.1731181912.diff (700 B)

Event Timeline