Skip to content

Commit

Permalink
feat: 유효성 검증 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
EunhoKang committed Nov 16, 2023
1 parent c4e9cb1 commit a28a5d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,16 @@ class LoginActivity : AppCompatActivity() {
loginViewModel.event.collect { eventType ->
when (eventType) {
LoginViewModel.LoginEvent.Invalid -> showDialog(
getString(R.string.login_invalid),
getString(R.string.login_invalid_message),
getString(R.string.login_fail_accept)
)

LoginViewModel.LoginEvent.LoginFailed -> showDialog(
getString(R.string.login_fail),
getString(R.string.login_fail_message),
getString(R.string.login_fail_accept)
)

LoginViewModel.LoginEvent.LoginFailed -> TODO("로그인 실패 시 처리")
LoginViewModel.LoginEvent.LoginSuccess -> TODO("로그인 성공 시 처리")
}
}
Expand Down
2 changes: 2 additions & 0 deletions android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
<string name="login_fail">로그인 실패</string>
<string name="login_fail_message">다시 시도해 주세요.</string>
<string name="login_fail_accept">확인</string>
<string name="login_invalid">유효하지 않은 입력입니다.</string>
<string name="login_invalid_message">이메일과 비밀번호를 다시 확인해주세요.</string>
</resources>

0 comments on commit a28a5d8

Please sign in to comment.