Skip to content

Commit

Permalink
this makes no sense.
Browse files Browse the repository at this point in the history
- if the user is anonymous, he'd go to HudsonAUthenticationEntryPoint, not here.
- even if there is some code path that comes here, there's no guarnatee that SecurityRealm in charge wants a login form.
  • Loading branch information
kohsuke committed Jun 29, 2013
1 parent d6ac6aa commit b834346
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions core/src/main/resources/jenkins/model/Jenkins/accessDenied.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,6 @@ THE SOFTWARE.
<h1>${%Access Denied}</h1>
<!-- TODO: message is not human readable. define a subclass -->
<p class="error"><st:out value="${exception.message}"/></p>

<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>

0 comments on commit b834346

Please sign in to comment.