File tree Expand file tree Collapse file tree
BrickHack-Mobile/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ class LoginViewController: UIViewController {
183183 DispatchQueue . main. async {
184184 MessageHandler . showNetworkError ( withText: error!. localizedDescription)
185185 SVProgressHUD . dismiss ( )
186+ self . logout ( )
186187 }
187188 return
188189 }
@@ -191,6 +192,7 @@ class LoginViewController: UIViewController {
191192 DispatchQueue . main. async {
192193 MessageHandler . showUserDataParsingError ( )
193194 SVProgressHUD . dismiss ( )
195+ self . logout ( )
194196 }
195197 return
196198 }
@@ -200,6 +202,7 @@ class LoginViewController: UIViewController {
200202 DispatchQueue . main. async {
201203 MessageHandler . showNetworkError ( withText: " Invalid response code " )
202204 SVProgressHUD . dismiss ( )
205+ self . logout ( )
203206 }
204207 return
205208 }
@@ -208,6 +211,7 @@ class LoginViewController: UIViewController {
208211 DispatchQueue . main. async {
209212 MessageHandler . showNetworkError ( withText: " User account not found " )
210213 SVProgressHUD . dismiss ( )
214+ self . logout ( )
211215 }
212216 return
213217 }
@@ -223,6 +227,7 @@ class LoginViewController: UIViewController {
223227 print ( " parsing error: \( error) " )
224228 MessageHandler . showUserDataParsingError ( withText: " Unable to convert JSON " )
225229 SVProgressHUD . dismiss ( )
230+ self . logout ( )
226231 }
227232 return
228233 }
You can’t perform that action at this time.
0 commit comments