Login Page Customization
You can customize the login page following the existing instructions. See Configuring an Alternative Authentication in Windchill for more information. The logout page is controlled by the wt.property wt.logout.url.
Specify the wt.property, wt.auth.form.loginMarker to include a unique string that is contained in the login page. This will allow background Ajax data requests to automatically show the login window when the session has timed out.
For example:
wt.auth.form.loginMarker=<form method="POST" action="j_security_check" id="login">
For better URL handling, it is recommended that you include the following code to the login page so that newer browsers will not drop the hash token that specifies the state of the application.
<script type="text/javascript">
if (window.location.hash) { //Handle logging in to a bookmark
document.forms[0].action += window.location.hash;
}
</script>
To customize the appearance and behavior of the login window, the window object can be pre-populated during page load with a custom SmartClient window instance. You can use the example from the SmartClient documentation or modify the one provided by PTC out-of-the-box:
isc.RPCManager.loginWindow = isc.Dialog.create({
src: 'app/login/loginSuccess.jsp?ptscsc=true',
showModalMask: true,
isModal: true,
title: "",
autoCenter: true,
showCloseButton: false,
showMinimizeButton: false,
width: 400,
height: 350
});
這是否有幫助?