/
defaultPasswordExpired.jsp
133 lines (124 loc) · 5.28 KB
/
defaultPasswordExpired.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<%--
~ Copyright (C) 2000 - 2019 Silverpeas
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License, or (at your option) any later version.
~
~ As a special exception to the terms and conditions of version 3.0 of
~ the GPL, you may redistribute this Program in connection with Free/Libre
~ Open Source Software ("FLOSS") applications as described in Silverpeas's
~ FLOSS exception. You should have received a copy of the text describing
~ the FLOSS exception, and it is also available here:
~ "https://www.silverpeas.org/legal/floss_exception.html"
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
--%>
<%@ page import="org.silverpeas.core.util.ResourceLocator" %>
<%@ page import="org.silverpeas.core.util.LocalizationBundle" %>
<%@ page import="org.silverpeas.core.ui.DisplayI18NHelper" %>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.silverpeas.com/tld/viewGenerator" prefix="view"%>
<%@ include file="headLog.jsp" %>
<%
LocalizationBundle authenticationBundle =
ResourceLocator.getLocalizationBundle("org.silverpeas.authentication.multilang.authentication",
request.getLocale().getLanguage());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=generalMultilang.getString("GML.popupTitle")%></title>
<link rel="icon" href="<%=favicon%>" />
<link type="text/css" rel="stylesheet" href="<%=styleSheet%>"/>
<link type="text/css" rel="stylesheet" href="<%=m_context%>/util/styleSheets/silverpeas-password.css"/>
<script type="text/javascript">var webContext = '<%=m_context%>';</script>
<view:includePlugin name="jquery"/>
<view:includePlugin name="tkn"/>
<view:script src="/util/javaScript/silverpeas.js" />
<view:script src="/util/javaScript/silverpeas-i18n.js" />
<view:includePlugin name="popup"/>
<view:script src="/password.js"/>
<!--[if lt IE 8]>
<style type="text/css">
input {
background-color: #FAFAFA;
border: 1px solid #DAD9D9;
width: 448px;
text-align: left;
margin-left: -10px;
height: 26px;
line-height: 24px;
display: block;
padding: 0;
}
</style>
<![endif]-->
</head>
<body>
<form id="changePwdForm" action="#" method="post">
<!-- Background foncé -->
<div class="page"> <!-- Centrage horizontal des éléments (960px) -->
<div class="titre"><%=authenticationBundle.getString("authentication.logon.title") %>
</div>
<div id="backgroundBig"> <!-- image de fond du formulaire -->
<div class="cadre">
<div id="header">
<img src="<%=logo%>" class="logo" alt=""/>
<p class="information"><%=authenticationBundle.getString("authentication.password.expired") %><br/>
<%
String message = (String) request.getAttribute("message");
if (message != null) {
%>
<span><%=message%></span><br/>
<% } %>
</p>
<div class="clear"></div>
</div>
<p><label><span><%=authenticationBundle.getString(
"authentication.password.old") %></span><input type="password" autocomplete="off" name="oldPassword" id="oldPassword"/></label>
</p>
<p><label><span><%=authenticationBundle.getString(
"authentication.password.new") %></span><input type="password" autocomplete="off" name="newPassword" id="newPassword"/></label>
</p>
<p><label><span><%=authenticationBundle.getString(
"authentication.password.confirm") %></span><input type="password" autocomplete="off" name="confirmPassword" id="confirmPassword"/></label>
</p>
<input type="hidden" name="login" value="${param.login}"/>
<input type="hidden" name="domainId" value="${param.domainId}"/>
<div class="submit">
<p>
<input type="submit" style="width:0; height:0; border:0; padding:0"/>
<a href="#" class="submit" onclick="$('#changePwdForm').submit()"><span><span>OK</span></span></a>
</p>
<p>
<span class="passwordRules"><a href="#" onclick="$('#newPassword').focus()">
<%=authenticationBundle.getString("authentication.password.showRules") %>
</a></span>
</p>
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
setTimeout(function() {
$('#oldPassword').focus();
handlePasswordForm({
passwordFormId : 'changePwdForm',
passwordFormAction : '<c:url value="/CredentialsServlet/ChangeExpiredPassword"/>',
passwordInputId : 'newPassword'
});
}, 0);
</script>
<view:script src="/util/javaScript/silverpeas-password.js"/>
</body>
</html>