Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 3, 2024
1 parent f00b157 commit 3f32894
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions todos-auth-fluent/Sources/App/Models/User.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ final class User: Model, Authenticatable, @unchecked Sendable {
self.email = email
self.passwordHash = passwordHash
}

internal init(from userRequest: CreateUserRequest) {
self.id = nil
self.name = userRequest.name
self.passwordHash = Bcrypt.hash(userRequest.password, cost: 12)
}
}

extension User {
Expand Down

0 comments on commit 3f32894

Please sign in to comment.