mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 05:25:50 +01:00
(refs #28)Upload avatar part is separated from account editing form.
This commit is contained in:
@@ -105,6 +105,7 @@ trait AccountControllerBase extends ControllerBase with FlashMapSupport {
|
||||
} else NotFound
|
||||
}
|
||||
|
||||
// TODO Merge with UserManagementController
|
||||
private def updateImage(userName: String, fileId: Option[String]): Unit = {
|
||||
fileId.map { fileId =>
|
||||
val filename = "avatar." + FileUtil.getExtension(FileUploadUtil.getUploadedFilename(fileId).get)
|
||||
|
||||
Reference in New Issue
Block a user