提交 1330a877 编写于 作者: K kohsuke

[fixed 1.206] don't show the login form in the access denied page if the user...

[fixed 1.206] don't show the login form in the access denied page if the user is already logged in (issue #1510)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8411 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5f1a7062
......@@ -8,25 +8,27 @@
<!-- TODO: message is not human readable. define a subclass -->
<p class="error"><st:out value="${exception.message}"/></p>
<div style="margin: 2em;">
<!-- login form -->
<form action="j_security_check" method="post" style="text-size:smaller">
<table>
<tr>
<td>User:</td>
<td><input type="text" name="j_username" id="j_username" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="j_password" /></td>
</tr>
</table>
<f:submit value="login" />
<script>
$('j_username').focus();
</script>
</form>
</div>
<j:if test="${h.isAnonymous()}">
<div style="margin: 2em;">
<!-- login form -->
<form action="j_security_check" method="post" style="text-size:smaller">
<table>
<tr>
<td>User:</td>
<td><input type="text" name="j_username" id="j_username" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="j_password" /></td>
</tr>
</table>
<f:submit value="login" />
<script>
$('j_username').focus();
</script>
</form>
</div>
</j:if>
</l:main-panel>
</l:layout>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册