提交 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 ...@@ -28,7 +28,7 @@ public final class LegacySecurityRealm extends SecurityRealm implements Authenti
* submit the form to the URL defined by the servlet spec. * submit the form to the URL defined by the servlet spec.
*/ */
@Override @Override
public String getLoginUrl() { public String getAuthenticationGatewayUrl() {
return "j_security_check"; return "j_security_check";
} }
......
...@@ -57,7 +57,7 @@ public abstract class SecurityRealm implements Describable<SecurityRealm>, Exten ...@@ -57,7 +57,7 @@ public abstract class SecurityRealm implements Describable<SecurityRealm>, Exten
* Returns the URL to submit a form for the authentication. * Returns the URL to submit a form for the authentication.
* There's no need to override this, except for {@link LegacySecurityRealm}. * There's no need to override this, except for {@link LegacySecurityRealm}.
*/ */
public String getLoginUrl() { public String getAuthenticationGatewayUrl() {
return "j_acegi_security_check"; return "j_acegi_security_check";
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<l:main-panel> <l:main-panel>
<div style="margin: 2em;"> <div style="margin: 2em;">
<!-- login form --> <!-- 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> <table>
<tr> <tr>
<td>User:</td> <td>User:</td>
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<td><input type="password" name="j_password" /></td> <td><input type="password" name="j_password" /></td>
</tr> </tr>
</table> </table>
<input type="hidden" name="target" value="${request.getParameter('from')}" />
<f:submit value="login" /> <f:submit value="login" />
<script> <script>
$('j_username').focus(); $('j_username').focus();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册