Update AppState.swift

Fix the issue where entering an email address with capital letters causes the login to fail.
This commit is contained in:
Mohammad ShahibZadeh 2024-12-24 12:31:56 +03:30 committed by GitHub
parent 17f3d365b8
commit a61338804c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -277,7 +277,7 @@ class AppState: ObservableObject {
func signIn(username: String, password: String) {
authError = nil
signIn(username: username, password: password)
signIn(username: username.lowercased(), password: password)
.sink(
receiveCompletion: { _ in },
receiveValue: { _ in }