Created
February 18, 2012 21:11
-
-
Save wojtekerbetowski/1861032 to your computer and use it in GitHub Desktop.
UserRegisterer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserRegisterer @Inject() (hasher: hasher) { | |
def register(username, password) = User(username, hasher.hash(password)).save | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment