mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
fix by review comment
This commit is contained in:
@@ -38,7 +38,7 @@ trait AccountService {
|
|||||||
case account if !account.isGroupAccount =>
|
case account if !account.isGroupAccount =>
|
||||||
account.password match {
|
account.password match {
|
||||||
case pbkdf2re(iter, salt, hash) if (pbkdf2_sha256(iter.toInt, salt, password) == hash) => Some(account)
|
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)))
|
updateAccount(account.copy(password = pbkdf2_sha256(password)))
|
||||||
Some(account)
|
Some(account)
|
||||||
case _ => None
|
case _ => None
|
||||||
|
|||||||
Reference in New Issue
Block a user