WIP: Working signup and login forms, along with initial view auth middleware.

This commit is contained in:
2026-01-03 11:30:42 -05:00
parent 6c6045b4a6
commit 1d155546ae
14 changed files with 316 additions and 1152 deletions

View File

@@ -18,6 +18,7 @@ public struct DatabaseClient: Sendable {
public var equipment: Equipment
public var componentLoss: ComponentLoss
public var effectiveLength: EffectiveLengthClient
public var users: Users
}
extension DatabaseClient: TestDependencyKey {
@@ -27,7 +28,8 @@ extension DatabaseClient: TestDependencyKey {
rooms: .testValue,
equipment: .testValue,
componentLoss: .testValue,
effectiveLength: .testValue
effectiveLength: .testValue,
users: .testValue
)
public static func live(database: any Database) -> Self {
@@ -37,7 +39,8 @@ extension DatabaseClient: TestDependencyKey {
rooms: .live(database: database),
equipment: .live(database: database),
componentLoss: .live(database: database),
effectiveLength: .live(database: database)
effectiveLength: .live(database: database),
users: .live(database: database)
)
}
}