提交 1f039e83 编写于 作者: K kohsuke

renamed login URL.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6334 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d74ccd09
......@@ -28,7 +28,7 @@ public final class LegacySecurityRealm extends SecurityRealm implements Authenti
* submit the form to the URL defined by the servlet spec.
*/
@Override
public String getLoginUrl() {
public String getAuthenticationGatewayUrl() {
return "j_security_check";
}
......
......@@ -57,7 +57,7 @@ public abstract class SecurityRealm implements Describable<SecurityRealm>, Exten
* Returns the URL to submit a form for the authentication.
* There's no need to override this, except for {@link LegacySecurityRealm}.
*/
public String getLoginUrl() {
public String getAuthenticationGatewayUrl() {
return "j_acegi_security_check";
}
......
......@@ -4,7 +4,7 @@
<l:main-panel>
<div style="margin: 2em;">
<!-- login form -->
<form action="${it.securityRealm.loginUrl}" method="post" style="text-size:smaller">
<form action="${it.securityRealm.authenticationGatewayUrl}" method="post" style="text-size:smaller">
<table>
<tr>
<td>User:</td>
......@@ -15,6 +15,7 @@
<td><input type="password" name="j_password" /></td>
</tr>
</table>
<input type="hidden" name="target" value="${request.getParameter('from')}" />
<f:submit value="login" />
<script>
$('j_username').focus();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册