fix by review comment

This commit is contained in:
KOUNOIKE Yuusuke
2018-05-24 00:30:13 +09:00
parent d45cba30c0
commit 99f1eaf3d8

View File

@@ -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