|
@@ -271,13 +271,12 @@ fun ForgotPassword(navHostController: NavHostController) {
|
|
|
// val email = basePreferenceHelper.getUser()?.userinfo?.email ?: "test_123"
|
|
|
Button(
|
|
|
onClick = {
|
|
|
- Log.d("test_button", "onClick Send Code $isEmailValid")
|
|
|
if (isEmailValid) {
|
|
|
isShowLoader = true
|
|
|
loginViewModel.forgotPassword(textChanged)
|
|
|
} else {
|
|
|
coroutineScope.launch {
|
|
|
- snackBarStateRed.showSnackbar("The email field is required.")
|
|
|
+ snackBarStateRed.showSnackbar(context.getString(R.string.email_field_req))
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -297,11 +296,8 @@ fun ForgotPassword(navHostController: NavHostController) {
|
|
|
Text(text = context.getString(R.string.send_code),
|
|
|
style = MaterialTheme.typography.titleMedium
|
|
|
)
|
|
|
- Log.d("test_button", "RowScope")
|
|
|
-
|
|
|
val forgotPasswordResponse = loginViewModel.liveDataForgotPassword.observeAsState()
|
|
|
forgotPasswordResponse.value?.let { data ->
|
|
|
- Log.d("forgotPassword: ","forgotPassword Screen: ${data.status} ${data.message}")
|
|
|
isShowLoader = false
|
|
|
if (data.status) {
|
|
|
coroutineScope.launch {
|