(refs #114)Remove unnecessary database accessing.

This commit is contained in:
takezoe
2013-11-03 14:51:42 +09:00
parent a03acc68e7
commit b30d42a37b

View File

@@ -107,7 +107,7 @@ trait UserManagementControllerBase extends AccountManagementControllerBase {
removeUserRelatedData(userName)
}
updateAccount(getAccountByUserName(userName, true).get.copy(
updateAccount(account.copy(
password = form.password.map(sha1).getOrElse(account.password),
fullName = form.fullName,
mailAddress = form.mailAddress,