|
@@ -185,15 +185,15 @@ fun ChangePassword(navHostController: NavHostController) {
|
|
|
Log.d("ChangePassword: ","TextFieldCurrPass = else")
|
|
|
if (!isCurrentPassword) {
|
|
|
coroutineScope.launch {
|
|
|
- snackBarStateRed.showSnackbar("The current password field is required.")
|
|
|
+ snackBarStateRed.showSnackbar(context.getString(R.string.current_pass_req))
|
|
|
}
|
|
|
} else if (!isNewPassword) {
|
|
|
coroutineScope.launch {
|
|
|
- snackBarStateRed.showSnackbar("The new password field is required.")
|
|
|
+ snackBarStateRed.showSnackbar(context.getString(R.string.new_pass_req))
|
|
|
}
|
|
|
} else if (!isConfirmPassword) {
|
|
|
coroutineScope.launch {
|
|
|
- snackBarStateRed.showSnackbar("The confirm password field is required.")
|
|
|
+ snackBarStateRed.showSnackbar(context.getString(R.string.confirm_pass_req))
|
|
|
}
|
|
|
}
|
|
|
}
|