aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/com/no_name/no_name/InitialActivity.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/com/no_name/no_name/InitialActivity.kt b/app/src/main/java/com/no_name/no_name/InitialActivity.kt
index ee25d3d..80ca5a7 100644
--- a/app/src/main/java/com/no_name/no_name/InitialActivity.kt
+++ b/app/src/main/java/com/no_name/no_name/InitialActivity.kt
@@ -43,6 +43,7 @@ class InitialActivity : AppCompatActivity() {
val (_, serverError) = result
when {
response.httpStatusCode == 200 -> startActivity<MainActivity>()
+ response.httpStatusCode == 401 -> startActivity<LoginActivity>()
!isConnected() -> startActivity<MainActivity>("notConnected" to true)
serverError != null -> startActivity<MainActivity>("serverDown" to true)
else -> startActivity<LoginActivity>()