Ensure that invalid username/password combinations throw an error
This commit is contained in:
parent
6765206a1b
commit
2756e8f204
|
@ -55,7 +55,7 @@ final class FeedbinAPICaller: NSObject {
|
||||||
switch error {
|
switch error {
|
||||||
case TransportError.httpError(let status):
|
case TransportError.httpError(let status):
|
||||||
if status == 401 {
|
if status == 401 {
|
||||||
completion(.success(self.credentials))
|
completion(.success(nil))
|
||||||
} else {
|
} else {
|
||||||
completion(.failure(error))
|
completion(.failure(error))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue