Prepared user registration implementation

This commit is contained in:
2020-01-18 10:34:04 +01:00
parent 4ba14ca997
commit 0165d6aa27
4 changed files with 9 additions and 3 deletions

View File

@ -87,7 +87,7 @@ public class LoginDialog extends JDialog {
JButton okButton = new JButton("OK");
okButton.addActionListener((evt) -> {
try {
credentials = new LoginCredentials(textField.getText(), passwordField.getPassword());
credentials = new LoginCredentials(textField.getText(), passwordField.getPassword(), false);
dispose();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();

View File

@ -41,7 +41,7 @@ public class MessageListRenderer extends JLabel implements ListCellRenderer<Mess
final String text = value.getText();
final String state = value.getStatus().toString();
final String date = new SimpleDateFormat("dd.MM.yyyy HH.mm").format(value.getDate());
final String date = new SimpleDateFormat("dd.MM.yyyy HH.mm").format(value.getCreationDate());
// Getting the MessageColor in the Chat of the current theme
String textColor = Settings.getInstance().getThemes().get(Settings.getInstance().getCurrentTheme()).getMessageColorChat().toHex();