Skip to content

Commit

Permalink
Corrected dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
proggeramlug committed Nov 26, 2018
1 parent f058c16 commit d288946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/App/Models/User/User+HTTP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension User: BasicJWTAuthenticatable {

/// The key-path for the property to check against `AuthBody.username`
/// when fetching the user form the database to authenticate.
static var usernameKey: KeyPath<User, String> {
static var usernameKey: WritableKeyPath<User, String> {
return \.email
}

Expand Down

0 comments on commit d288946

Please sign in to comment.