How do I select on an encrypted variable with Slick.
I have a BCrypt encoded password in my database.
To Illustrate my intentions:
def login(name: String, password: String) = Action {
...
for {
u <- Users if u.name === name && BCrypt.checkpw(password, u.password)
} yield u
Of course slick complains about u.password being a lifted column and not a String.
How would you go about to solve the problem?