mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
(refs #114)Remove unnecessary database accessing.
This commit is contained in:
@@ -107,7 +107,7 @@ trait UserManagementControllerBase extends AccountManagementControllerBase {
|
|||||||
removeUserRelatedData(userName)
|
removeUserRelatedData(userName)
|
||||||
}
|
}
|
||||||
|
|
||||||
updateAccount(getAccountByUserName(userName, true).get.copy(
|
updateAccount(account.copy(
|
||||||
password = form.password.map(sha1).getOrElse(account.password),
|
password = form.password.map(sha1).getOrElse(account.password),
|
||||||
fullName = form.fullName,
|
fullName = form.fullName,
|
||||||
mailAddress = form.mailAddress,
|
mailAddress = form.mailAddress,
|
||||||
|
|||||||
Reference in New Issue
Block a user