our users!
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
insert into Customer (username, name) values ('rod', 'Rod')
|
||||
insert into Customer (username, name) values ('dianne', 'Dianne')
|
||||
insert into Customer (username, name) values ('keith', 'Keith')
|
||||
insert into Customer (username, name) values ('erwin', 'Erwin')
|
||||
insert into Customer (username, name) values ('jeremy', 'Jeremy')
|
||||
insert into Customer (username, name) values ('scott', 'Scott')
|
||||
insert into Hotel (id, price, name, address, city, state, zip, country) values (1, 199, 'Westin Diplomat', '3555 S. Ocean Drive', 'Hollywood', 'FL', '33019', 'USA')
|
||||
insert into Hotel (id, price, name, address, city, state, zip, country) values (2, 120, 'Marriott Courtyard', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
<ui:define name="content">
|
||||
|
||||
|
||||
<h1>Login</h1>
|
||||
<h1>Login Required</h1>
|
||||
|
||||
<c:if test="${not empty param.login_error}">
|
||||
<div class="errors">
|
||||
@@ -17,11 +16,12 @@
|
||||
</c:if>
|
||||
|
||||
<div class="section">
|
||||
<p>Valid users:</p>
|
||||
<p>Valid username/passwords are:</p>
|
||||
<ul>
|
||||
<li>rod/koala</li>
|
||||
<li>dianne/emu</li>
|
||||
<li>scott/wombat</li>
|
||||
<li>keith/melbourne</li>
|
||||
<li>erwin/leuven</li>
|
||||
<li>scott/rochester</li>
|
||||
<li>jeremy/atlanta</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -106,16 +106,18 @@
|
||||
Define local authentication provider, a real app would use an external provider (JDBC, LDAP, CAS, etc)
|
||||
|
||||
usernames/passwords are:
|
||||
rod/koala
|
||||
dianne/emu
|
||||
scott/wombat
|
||||
keith/melbourne
|
||||
erwin/leuven
|
||||
jeremy/atlanta
|
||||
scott/rochester
|
||||
-->
|
||||
<security:authentication-provider>
|
||||
<security:password-encoder hash="md5" />
|
||||
<security:user-service>
|
||||
<security:user name="rod" password="a564de63c2d0da68cf47586ee05984d7" authorities="ROLE_USER, ROLE_SUPERVISOR" />
|
||||
<security:user name="dianne" password="65d15fe9156f9c4bbffd98085992a44e" authorities="ROLE_USER" />
|
||||
<security:user name="scott" password="2b58af6dddbd072ed27ffc86725d7d3a" authorities="ROLE_USER" />
|
||||
<security:user name="keith" password="417c7382b16c395bc25b5da1398cf076" authorities="ROLE_USER, ROLE_SUPERVISOR" />
|
||||
<security:user name="erwin" password="12430911a8af075c6f41c6976af22b09" authorities="ROLE_USER, ROLE_SUPERVISOR" />
|
||||
<security:user name="jeremy" password="c0cdd82ce092b01267bdd88a8bfbb1f4" authorities="ROLE_USER" />
|
||||
<security:user name="scott" password="57c6cbff0d421449be820763f03139eb" authorities="ROLE_USER" />
|
||||
</security:user-service>
|
||||
</security:authentication-provider>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
insert into Customer (username, name) values ('rod', 'Rod')
|
||||
insert into Customer (username, name) values ('dianne', 'Dianne')
|
||||
insert into Customer (username, name) values ('keith', 'Keith')
|
||||
insert into Customer (username, name) values ('erwin', 'Erwin')
|
||||
insert into Customer (username, name) values ('jeremy', 'Jeremy')
|
||||
insert into Customer (username, name) values ('scott', 'Scott')
|
||||
insert into Hotel (id, price, name, address, city, state, zip, country) values (1, 199, 'Westin Diplomat', '3555 S. Ocean Drive', 'Hollywood', 'FL', '33019', 'USA')
|
||||
insert into Hotel (id, price, name, address, city, state, zip, country) values (2, 120, 'Marriott Courtyard', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
<tiles:insertTemplate template="/WEB-INF/layouts/standard.jsp">
|
||||
<tiles:putAttribute name="content">
|
||||
|
||||
|
||||
<h1>Login</h1>
|
||||
<h1>Login Required</h1>
|
||||
|
||||
<c:if test="${not empty param.login_error}">
|
||||
<div class="errors">
|
||||
@@ -21,11 +20,12 @@
|
||||
</c:if>
|
||||
|
||||
<div class="section">
|
||||
<p>Valid users:</p>
|
||||
<p>Valid username/passwords are:</p>
|
||||
<ul>
|
||||
<li>rod/koala</li>
|
||||
<li>dianne/emu</li>
|
||||
<li>scott/wombat</li>
|
||||
<li>keith/melbourne</li>
|
||||
<li>erwin/leuven</li>
|
||||
<li>scott/rochester</li>
|
||||
<li>jeremy/atlanta</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -132,16 +132,18 @@
|
||||
Define local authentication provider, a real app would use an external provider (JDBC, LDAP, CAS, etc)
|
||||
|
||||
usernames/passwords are:
|
||||
rod/koala
|
||||
dianne/emu
|
||||
scott/wombat
|
||||
keith/melbourne
|
||||
erwin/leuven
|
||||
jeremy/atlanta
|
||||
scott/rochester
|
||||
-->
|
||||
<security:authentication-provider>
|
||||
<security:password-encoder hash="md5" />
|
||||
<security:user-service>
|
||||
<security:user name="rod" password="a564de63c2d0da68cf47586ee05984d7" authorities="ROLE_USER, ROLE_SUPERVISOR" />
|
||||
<security:user name="dianne" password="65d15fe9156f9c4bbffd98085992a44e" authorities="ROLE_USER" />
|
||||
<security:user name="scott" password="2b58af6dddbd072ed27ffc86725d7d3a" authorities="ROLE_USER" />
|
||||
<security:user name="keith" password="417c7382b16c395bc25b5da1398cf076" authorities="ROLE_USER, ROLE_SUPERVISOR" />
|
||||
<security:user name="erwin" password="12430911a8af075c6f41c6976af22b09" authorities="ROLE_USER, ROLE_SUPERVISOR" />
|
||||
<security:user name="jeremy" password="c0cdd82ce092b01267bdd88a8bfbb1f4" authorities="ROLE_USER" />
|
||||
<security:user name="scott" password="57c6cbff0d421449be820763f03139eb" authorities="ROLE_USER" />
|
||||
</security:user-service>
|
||||
</security:authentication-provider>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user