feat: Working login form with htmx.

This commit is contained in:
2025-01-06 19:28:14 -05:00
parent 35ca73e1b4
commit f9b58676bb
5 changed files with 56 additions and 33 deletions

View File

@@ -80,7 +80,7 @@ extension User {
}
extension User: ModelAuthenticatable {
static let usernameKey = \User.$email
static let usernameKey = \User.$username
static let passwordHashKey = \User.$passwordHash
func verify(password: String) throws -> Bool {