From 99f1eaf3d82d6fbcae951a6a5edfdd1f9235062e Mon Sep 17 00:00:00 2001 From: KOUNOIKE Yuusuke Date: Thu, 24 May 2018 00:30:13 +0900 Subject: [PATCH] fix by review comment --- src/main/scala/gitbucket/core/service/AccountService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/gitbucket/core/service/AccountService.scala b/src/main/scala/gitbucket/core/service/AccountService.scala index 940063f64..ea851b105 100644 --- a/src/main/scala/gitbucket/core/service/AccountService.scala +++ b/src/main/scala/gitbucket/core/service/AccountService.scala @@ -38,7 +38,7 @@ trait AccountService { 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