-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JDBC-based user store & display login error message
- Loading branch information
1 parent
cb9c028
commit 0fe0a00
Showing
3 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use tacocloud2; | ||
create table Users( | ||
username varchar(50) not null primary key, | ||
password varchar(500) not null, | ||
enabled bit not null | ||
); | ||
|
||
create table Authorities ( | ||
username varchar(50) not null, | ||
authority varchar(50) not null, | ||
constraint fk_authorities_users foreign key(username) references users(username) | ||
); | ||
create unique index ix_auth_username on authorities (username,authority); | ||
|
||
insert into dbo.Users (username, password, enabled) values ('yoko', 'littner', 1); | ||
|
||
insert into dbo.Authorities (username, authority) values ('yoko', 'ROLE_USER'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters