File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
openid-connect-server-webapp/src/main/webapp Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 10
10
<div class =" row-fluid" >
11
11
<div class =" offset1 span10" >
12
12
<div class =" hero-unit" >
13
- <h1 >Error: </h1 >
13
+ <h1 >< spring:message code = " error.header " /> </h1 >
14
14
<h2 class =" text-error" ><c:out value =" ${ error. getOAuth2ErrorCode() } " /></h2 >
15
15
<p >
16
- There was an error processing your request. The server's message was:
16
+ < spring:message code = " error. message" />
17
17
<blockquote class =" text-error" ><b ><c:out value =" ${ error. message } " /></b ></blockquote >
18
18
</p >
19
19
Original file line number Diff line number Diff line change 1
1
<%@ taglib prefix =" authz" uri =" http://www.springframework.org/security/tags" %>
2
2
<%@ taglib prefix =" c" uri =" http://java.sun.com/jsp/jstl/core" %>
3
3
<%@ taglib prefix =" o" tagdir =" /WEB-INF/tags" %>
4
+ <%@ taglib prefix =" spring" uri =" http://www.springframework.org/tags" %>
5
+
4
6
<o:header title =" Log In" />
5
7
<script type =" text/javascript" >
6
8
<!--
@@ -15,16 +17,15 @@ $(document).ready(function() {
15
17
<o:topbar />
16
18
<div class =" container-fluid main" >
17
19
18
- <h1 >Login with Username and Password </h1 >
20
+ <h1 >< spring:message code = " login.login_with_username_and_password " /> </h1 >
19
21
20
22
<c:if test =" ${ param. error != null } " >
21
- <div class =" alert alert-error" >The system was unable to log you
22
- in. Please try again.</div >
23
+ <div class =" alert alert-error" ><spring:message code =" login.error" /></div >
23
24
</c:if >
24
25
25
26
26
27
<div class =" row-fluid" >
27
- <div class =" span4 offset1 well" >
28
+ <div class =" span6 offset1 well" >
28
29
<form action =" <%= request. getContextPath() % > /j_spring_security_check"
29
30
method =" POST" >
30
31
<div >
Original file line number Diff line number Diff line change 454
454
}
455
455
},
456
456
"error" : {
457
- "title" : " Error"
457
+ "title" : " Error" ,
458
+ "header" : " Error:" ,
459
+ "message" : " There was an error processing your request. The server''s message was:"
460
+ },
461
+ "login" : {
462
+ "login_with_username_and_password" : " Login with Username and Password" ,
463
+ "error" : " The system was unable to log you in. Please try again."
458
464
}
459
465
460
466
}
You can’t perform that action at this time.
0 commit comments