-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Don't send validation errors to Sentry. * MOBILE-358 Song filter doesn't filter out song previews * MOBILE-359 Playing song by selecting from list causes endless play button spinner --------- Co-authored-by: Gohan <[email protected]>
- Loading branch information
1 parent
479c1f3
commit 91c739b
Showing
7 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Foundation | ||
|
||
public enum LoginValidationError: Error { | ||
case invalidPassword | ||
case invalidEmail | ||
case passwordsDoNotMatch | ||
} | ||
|
||
extension LoginValidationError: LocalizedError { | ||
public var errorDescription: String? { | ||
switch self { | ||
case .invalidPassword: | ||
return "Password must contain at least 8 characters, 1 uppercase letter, 1 lowercase letter and 1 number." | ||
case .invalidEmail: | ||
return "Invalid email format" | ||
case .passwordsDoNotMatch: | ||
return "Passwords do not match" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 1 addition & 19 deletions
20
iosApp/Modules/Screens/Login/Utilities/LoginFieldValidator.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters