Skip to content

Commit f060700

Browse files
committed
cleanup and upgrade
1 parent 5154c5b commit f060700

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • spring-security-login-and-registration/src/main/webapp/WEB-INF/view

‎spring-security-login-and-registration/src/main/webapp/WEB-INF/view/login.jsp‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
<title><spring:message code="label.pages.home.title"></spring:message></title>
1616
<script type="text/javascript">
1717
function validate() {
18-
if (document.f.j_username.value == ""
19-
&& document.f.j_password.value == "") {
18+
if (document.f.username.value == ""
19+
&& document.f.password.value == "") {
2020
alert("${noUser} & ${noPass}");
21-
document.f.j_username.focus();
21+
document.f.username.focus();
2222
return false;
2323
}
24-
if (document.f.j_username.value == "") {
24+
if (document.f.username.value == "") {
2525
alert("${noUser}");
26-
document.f.j_username.focus();
26+
document.f.username.focus();
2727
return false;
2828
}
29-
if (document.f.j_password.value == "") {
29+
if (document.f.password.value == "") {
3030
alert("${noPass}");
31-
document.f.j_password.focus();
31+
document.f.password.focus();
3232
return false;
3333
}
3434
}

0 commit comments

Comments
 (0)