Changeset 3061
- Timestamp:
- Jan 15, 2007, 10:48:48 AM (17 years ago)
- Location:
- trunk/www
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/exception/not_logged_in.jsp
r2978 r3061 37 37 --%> 38 38 <%@ page session="false" 39 import="net.sf.basedb.core.Application" 39 40 import="net.sf.basedb.core.SessionControl" 40 41 import="net.sf.basedb.clients.web.Base" … … 79 80 Main.show('timeout'); 80 81 } 81 if ( topWindow.encrypt != undefined)82 if (frm.encrypt && topWindow.encrypt != undefined) 82 83 { 83 84 frm.encrypt.checked = topWindow.encrypt; … … 118 119 { 119 120 var frm = document.forms['login']; 120 if (frm.encrypt .checked)121 if (frm.encrypt && frm.encrypt.checked) 121 122 { 122 123 var password = frm.password.value; … … 168 169 <td><base:button onclick="mainPage();" title="Cancel" /></td> 169 170 </tr> 170 <tr> 171 <td class="prompt">Encrypt password</td> 172 <td> 173 <input type="checkbox" name="encrypt" checked value="1"><br> 174 </td> 175 </tr> 171 <% 172 if (Application.isUsingInternalAuthentication()) 173 { 174 %> 175 <tr> 176 <td class="prompt">Encrypt password</td> 177 <td> 178 <input type="checkbox" name="encrypt" checked value="1"><br> 179 </td> 180 </tr> 181 <% 182 } 183 %> 176 184 <tr> 177 185 <td colspan="4"> -
trunk/www/main.jsp
r2978 r3061 32 32 --%> 33 33 <%@ page session="false" 34 import="net.sf.basedb.core.Application" 34 35 import="net.sf.basedb.core.SessionControl" 35 36 import="net.sf.basedb.core.DbControl" … … 75 76 frm = document.forms['login']; 76 77 if (frm.login.value == '' && window.parent.lastLogin) frm.login.value = window.parent.lastLogin; 77 if ( window.parent.encrypt != undefined) frm.encrypt.checked = window.parent.encrypt;78 if (frm.encrypt && window.parent.encrypt != undefined) frm.encrypt.checked = window.parent.encrypt; 78 79 if (frm.login.value == '') 79 80 { … … 90 91 var frm = document.forms['login']; 91 92 window.parent.lastLogin = frm.login.value; 92 window.parent.encrypt = frm.encrypt.checked;93 93 94 if (frm.encrypt.checked) 95 { 96 var password = frm.password.value; 97 var md5password = hex_md5(password); 98 md5password = hex_md5(md5password + ':<%=sc.getChallenge()%>'); 99 frm.encrypted_password.value = md5password; 100 frm.password.value = ''; 94 if (frm.encrypt) 95 { 96 window.parent.encrypt = frm.encrypt.checked; 97 if (frm.encrypt.checked) 98 { 99 var password = frm.password.value; 100 var md5password = hex_md5(password); 101 md5password = hex_md5(md5password + ':<%=sc.getChallenge()%>'); 102 frm.encrypted_password.value = md5password; 103 frm.password.value = ''; 104 } 101 105 } 102 106 return true; … … 154 158 <td><base:button image="login.png" onclick="doLogin();" title="Login" /></td> 155 159 </tr> 156 <tr> 157 <td class="prompt">Encrypt password</td> 158 <td> 159 <input type="checkbox" name="encrypt" <%=false ? "" : "checked"%> value="1"><br> 160 </td> 161 </tr> 160 <% 161 if (Application.isUsingInternalAuthentication()) 162 { 163 %> 164 <tr> 165 <td class="prompt">Encrypt password</td> 166 <td> 167 <input type="checkbox" name="encrypt" <%=false ? "" : "checked"%> value="1"><br> 168 </td> 169 </tr> 170 <% 171 } 172 %> 162 173 <tr> 163 174 <td colspan="3"> -
trunk/www/switch.jsp
r2978 r3061 26 26 --%> 27 27 <%@ page session="false" 28 import="net.sf.basedb.core.Application" 28 29 import="net.sf.basedb.core.SessionControl" 29 30 import="net.sf.basedb.core.DbControl" … … 63 64 frm = document.forms['login']; 64 65 if (frm.login.value == '' && window.parent.lastLogin) frm.login.value = window.parent.lastLogin; 65 if ( window.parent.encrypt != undefined) frm.encrypt.checked = window.parent.encrypt;66 if (frm.encrypt && window.parent.encrypt != undefined) frm.encrypt.checked = window.parent.encrypt; 66 67 if (frm.login.value == '') 67 68 { … … 78 79 var frm = document.forms['login']; 79 80 window.opener.parent.lastLogin = frm.login.value; 80 window.opener.parent.encrypt = frm.encrypt.checked; 81 82 if (frm.encrypt.checked) 81 82 if (frm.encrypt) 83 83 { 84 var password = frm.password.value; 85 var md5password = hex_md5(password); 86 md5password = hex_md5(md5password + ':<%=sc.getChallenge()%>'); 87 frm.encrypted_password.value = md5password; 88 frm.password.value = ''; 84 window.opener.parent.encrypt = frm.encrypt.checked; 85 if (frm.encrypt.checked) 86 { 87 var password = frm.password.value; 88 var md5password = hex_md5(password); 89 md5password = hex_md5(md5password + ':<%=sc.getChallenge()%>'); 90 frm.encrypted_password.value = md5password; 91 frm.password.value = ''; 92 } 89 93 } 90 94 return true; … … 132 136 </td> 133 137 </tr> 134 <tr> 135 <td class="prompt">Encrypt password</td> 136 <td> 137 <input type="checkbox" name="encrypt" <%=false ? "" : "checked"%> value="1"><br> 138 </td> 139 </tr> 138 <% 139 if (Application.isUsingInternalAuthentication()) 140 { 141 %> 142 <tr> 143 <td class="prompt">Encrypt password</td> 144 <td> 145 <input type="checkbox" name="encrypt" <%=false ? "" : "checked"%> value="1"><br> 146 </td> 147 </tr> 148 <% 149 } 150 %> 140 151 </table> 141 152 </div>
Note: See TracChangeset
for help on using the changeset viewer.