From 3c07153b4b5322ae57cf9b924ea3cd136cf4c03f Mon Sep 17 00:00:00 2001 From: Jon Sundin Date: Sun, 28 Jan 2024 08:39:49 +0000 Subject: [PATCH] added _ to end of password --- src/main/java/Model/Account.java | 2 +- src/main/resources/SocialMedia.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/Model/Account.java b/src/main/java/Model/Account.java index 63d60bb..7f06ad6 100644 --- a/src/main/java/Model/Account.java +++ b/src/main/java/Model/Account.java @@ -112,7 +112,7 @@ public String toString() { return "Account{" + "account_id=" + account_id + ", username='" + username + '\'' + - ", password='" + password + '\'' + + ", password_='" + password + '\'' + '}'; } } diff --git a/src/main/resources/SocialMedia.sql b/src/main/resources/SocialMedia.sql index 4eb1bc5..15b62f7 100644 --- a/src/main/resources/SocialMedia.sql +++ b/src/main/resources/SocialMedia.sql @@ -3,7 +3,7 @@ drop table if exists account; create table account ( account_id int primary key auto_increment, username varchar(255) unique, - password varchar(255) + password_ varchar(255) ); create table message ( message_id int primary key auto_increment, @@ -13,5 +13,5 @@ create table message ( foreign key (posted_by) references account(account_id) ); -insert into account (username, password) values ('testuser1', 'password'); +insert into account (username, password_) values ('testuser1', 'password'); insert into message (posted_by, message_text, time_posted_epoch) values (1,'test message 1',1669947792);