Skip to content

Commit

Permalink
added _ to end of password
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsundin committed Jan 28, 2024
1 parent 1d7a644 commit 3c07153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/Model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public String toString() {
return "Account{" +
"account_id=" + account_id +
", username='" + username + '\'' +
", password='" + password + '\'' +
", password_='" + password + '\'' +
'}';
}
}
4 changes: 2 additions & 2 deletions src/main/resources/SocialMedia.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);

0 comments on commit 3c07153

Please sign in to comment.