feat: Adds reset password api route, needs associated view route.
This commit is contained in:
@@ -61,6 +61,19 @@ public extension User {
|
||||
}
|
||||
}
|
||||
|
||||
struct ResetPassword: Codable, Equatable, Sendable {
|
||||
public let password: String
|
||||
public let confirmPassword: String
|
||||
|
||||
public init(
|
||||
password: String,
|
||||
confirmPassword: String
|
||||
) {
|
||||
self.password = password
|
||||
self.confirmPassword = confirmPassword
|
||||
}
|
||||
}
|
||||
|
||||
struct Token: Codable, Equatable, Identifiable, Sendable {
|
||||
public let id: UUID
|
||||
public let userID: User.ID
|
||||
|
||||
Reference in New Issue
Block a user