diff --git a/app/src/main/java/umc/com/mobile/project/ui/login/LoginActivity.kt b/app/src/main/java/umc/com/mobile/project/ui/login/LoginActivity.kt index 5aaa810..11165aa 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/login/LoginActivity.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/login/LoginActivity.kt @@ -55,7 +55,7 @@ class LoginActivity : AppCompatActivity() { imm.hideSoftInputFromWindow(binding.etPassword.windowToken, 0) // 로그인 버튼 클릭 - binding.btnLogin.performClick() +// binding.btnLogin.performClick() return@setOnEditorActionListener true } false diff --git a/app/src/main/java/umc/com/mobile/project/ui/login/viewmodel/LoginViewModel.kt b/app/src/main/java/umc/com/mobile/project/ui/login/viewmodel/LoginViewModel.kt index 76fd26e..ea2f725 100644 --- a/app/src/main/java/umc/com/mobile/project/ui/login/viewmodel/LoginViewModel.kt +++ b/app/src/main/java/umc/com/mobile/project/ui/login/viewmodel/LoginViewModel.kt @@ -37,7 +37,7 @@ class LoginViewModel : ViewModel() { val loginStatus: LiveData get() = _loginStatus - // 추가: 로그인 성공 여부 LiveData + // 로그인 성공 여부 LiveData private val _loginSuccess: MutableLiveData = MutableLiveData() val loginSuccess: LiveData get() = _loginSuccess @@ -53,6 +53,7 @@ class LoginViewModel : ViewModel() { } init { +// _loginStatus.value = false _loginStatus.postValue(false) } @@ -77,8 +78,9 @@ class LoginViewModel : ViewModel() { _loginResult.postValue(response.body()) _loginSuccess.postValue(false) - Log.d("cookies", "$cookies") - Log.d("Login", "${response.body()}") +// Log.d("cookies", "$cookies") +// Log.d("Login", "${_loginResult.value}") +// Log.d("Login success", "${response.body()}") } else { _loginResult.postValue( LoginResponse( @@ -91,7 +93,7 @@ class LoginViewModel : ViewModel() { _loginSuccess.postValue(true) _loginStatus.postValue(true) - Log.e("Login", "정보 틀림: $loginResult") +// Log.e("Login", "정보 틀림: ${_loginResult.value}") } }