(refs #28)Look up Gravatar if user icon is not configured.

This commit is contained in:
takezoe
2013-07-11 03:51:50 +09:00
parent 072290e544
commit 796a276b65
17 changed files with 53 additions and 27 deletions

View File

@@ -8,4 +8,10 @@ object StringUtil {
md.digest.map(b => "%02x".format(b)).mkString
}
def md5(value: String): String = {
val md = java.security.MessageDigest.getInstance("MD5")
md.update(value.getBytes)
md.digest.map(b => "%02x".format(b)).mkString
}
}