From 461c91a0951b94cf02204dfe4eb8e3a0168ad4ac Mon Sep 17 00:00:00 2001 From: MrThanasiz <8089997+MrThanasiz@users.noreply.github.com> Date: Wed, 12 Jun 2019 22:30:35 +0300 Subject: [PATCH] Minor Bug fixes introduced in 1.0.1 --- src/HomeFrame.java | 4 +++- src/RegisterFrame.java | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/HomeFrame.java b/src/HomeFrame.java index 18c4f7f..00d9406 100644 --- a/src/HomeFrame.java +++ b/src/HomeFrame.java @@ -4,6 +4,7 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URL; +import java.util.Arrays; @SuppressWarnings("serial") @@ -221,7 +222,7 @@ public static String getUsername() { } public static String getPasswordHF() { - return password.getPassword().toString(); + return String.valueOf(password.getPassword()); } @@ -242,6 +243,7 @@ public void actionPerformed(ActionEvent e) { username = HomeFrame.getUsername(); password = HomeFrame.getPasswordHF(); + System.out.println("pass="+password); CentralRegistry.desirializeUsers(); diff --git a/src/RegisterFrame.java b/src/RegisterFrame.java index 57db22c..4d75b15 100644 --- a/src/RegisterFrame.java +++ b/src/RegisterFrame.java @@ -215,7 +215,7 @@ public static JButton getRegisterButton() { } public static String getPassword() { - return password.getPassword().toString(); + return String.valueOf(password.getPassword()); } @@ -230,7 +230,7 @@ public static String getUsername() { } public static String getPasswordRF() { - return password.getPassword().toString(); + return String.valueOf(password.getPassword()); } public static String getDepString() {