From 2899f1b29355c7ab2854e8d2f8f65c9e50bdb657 Mon Sep 17 00:00:00 2001 From: John Kidd Jr Date: Mon, 18 Sep 2023 22:29:52 -0400 Subject: [PATCH] added check for blank password when creating a vault Signed-off-by: John Kidd Jr --- .../es/wolfi/app/passman/fragments/VaultAddFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/es/wolfi/app/passman/fragments/VaultAddFragment.java b/app/src/main/java/es/wolfi/app/passman/fragments/VaultAddFragment.java index 9f7b66dc..74700c5a 100644 --- a/app/src/main/java/es/wolfi/app/passman/fragments/VaultAddFragment.java +++ b/app/src/main/java/es/wolfi/app/passman/fragments/VaultAddFragment.java @@ -137,6 +137,12 @@ public void onClick(View view) { add_vault_name_header.setTextColor(getResources().getColor(R.color.colorAccent)); } + if (add_vault_password.getText().toString().equals("")) { + add_vault_password_header.setTextColor(getResources().getColor(R.color.danger)); + add_vault_password_repeat_header.setTextColor(getResources().getColor(R.color.danger)); + return; + } + if (!add_vault_password.getText().toString().equals(add_vault_password_repeat.getText().toString())) { add_vault_password_header.setTextColor(getResources().getColor(R.color.danger)); add_vault_password_repeat_header.setTextColor(getResources().getColor(R.color.danger));