diff options
author | vlad <vlad@driver.xyz> | 2017-07-17 19:35:53 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-07-17 19:35:53 -0700 |
commit | 01ead151be45774ed3fc08ef010215a5f5728498 (patch) | |
tree | 70ec5273736e67693be0d61cd2d9bb604505bfb4 /src/main/scala/xyz/driver/pdsuicommon/json | |
parent | 702b86748425650445b8b2278814474bab9ae27b (diff) | |
download | rest-query-01ead151be45774ed3fc08ef010215a5f5728498.tar.gz rest-query-01ead151be45774ed3fc08ef010215a5f5728498.tar.bz2 rest-query-01ead151be45774ed3fc08ef010215a5f5728498.zip |
Removing PasswordHash and jbCrypt lib from dependencies
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuicommon/json')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuicommon/json/Serialization.scala | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/scala/xyz/driver/pdsuicommon/json/Serialization.scala b/src/main/scala/xyz/driver/pdsuicommon/json/Serialization.scala index 9800903..8231ddb 100644 --- a/src/main/scala/xyz/driver/pdsuicommon/json/Serialization.scala +++ b/src/main/scala/xyz/driver/pdsuicommon/json/Serialization.scala @@ -40,12 +40,6 @@ object Serialization { private val emailJsonWrites: Writes[Email] = Writes(email => JsString(email.value)) implicit val emailJsonFormat: Format[Email] = Format(emailJsonReads, emailJsonWrites) - private val passwordHashJsonReads: Reads[PasswordHash] = - Reads.StringReads.map(hash => PasswordHash(hash.getBytes("UTF-8"))) - private val passwordHashJsonWrites: Writes[PasswordHash] = Writes( - passwordHash => JsString(passwordHash.value.toString)) - implicit val passwordHashJsonFormat: Format[PasswordHash] = Format(passwordHashJsonReads, passwordHashJsonWrites) - private val caseIdJsonReads: Reads[CaseId] = Reads.StringReads.map(CaseId(_)) private val caseIdJsonWrites: Writes[CaseId] = Writes(caseId => JsString(caseId.id)) implicit val caseIdJsonFormat: Format[CaseId] = Format(caseIdJsonReads, caseIdJsonWrites) |