diff --git a/src/main/scala/gitbucket/core/service/AccountService.scala b/src/main/scala/gitbucket/core/service/AccountService.scala index 940063f..ea851b1 100644 --- a/src/main/scala/gitbucket/core/service/AccountService.scala +++ b/src/main/scala/gitbucket/core/service/AccountService.scala @@ -38,7 +38,7 @@ case account if !account.isGroupAccount => account.password match { case pbkdf2re(iter, salt, hash) if (pbkdf2_sha256(iter.toInt, salt, password) == hash) => Some(account) - case p: String if p == sha1(password) => + case p if p == sha1(password) => updateAccount(account.copy(password = pbkdf2_sha256(password))) Some(account) case _ => None