Created
December 20, 2016 17:33
-
-
Save calebkleveter/dcd6194403bae4f2bdf1a191fac43f79 to your computer and use it in GitHub Desktop.
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
import Auth | |
import BCrypt | |
final class StandardCredentials: Credentials { | |
var username: String | |
var password: String | |
init(username: String, password: String) { | |
self.username = username | |
self.password = BCrypt.hash(password: password) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment