Skip to content

Commit

Permalink
T-28 Fix check lasth url path components (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayer1a authored Oct 28, 2024
2 parents 7a4a28b + 1008639 commit f6a52c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ final class CustomErrorMiddleware: Middleware {
let code: String
let reason: String

if error.status == .unauthorized, url.path.components(separatedBy: "/").last == "login" {
if error.status == .unauthorized, url.path.pathComponents.last == "login" {

code = "authError"
reason = "Invalid phone or password"
Expand Down

0 comments on commit f6a52c1

Please sign in to comment.