Removing unneeded div el

pull/59/head
Michael Jett 2012-04-24 13:02:20 -04:00
parent 703a8abab5
commit 181b0ce605
1 changed files with 27 additions and 29 deletions

View File

@ -8,42 +8,40 @@
<o:header title="approve access"/> <o:header title="approve access"/>
<o:topbar/> <o:topbar/>
<div class="container"> <div class="container">
<div class="content"> <% if (session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null && !(session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) instanceof UnapprovedClientAuthenticationException)) { %>
<% if (session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null && !(session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) instanceof UnapprovedClientAuthenticationException)) { %> <div class="alert-message error">
<div class="alert-message error"> <a href="#" class="close">&times;</a>
<a href="#" class="close">&times;</a>
<p><strong>Access could not be granted.</strong> <p><strong>Access could not be granted.</strong>
(<%= ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> (<%= ((AuthenticationException) session.getAttribute(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
)</p> )</p>
</div> </div>
<% } %> <% } %>
<c:remove scope="session" var="SPRING_SECURITY_LAST_EXCEPTION"/> <c:remove scope="session" var="SPRING_SECURITY_LAST_EXCEPTION"/>
<authz:authorize ifAllGranted="ROLE_USER"> <authz:authorize ifAllGranted="ROLE_USER">
<div class="hero-unit" style="text-align:center"> <div class="hero-unit" style="text-align:center">
<h1>Please Confirm!</h1> <h1>Please Confirm!</h1>
<p>I hereby authorize "<c:out value="${client.clientId}"/>" to access my protected resources.</p> <p>I hereby authorize "<c:out value="${client.clientId}"/>" to access my protected resources.</p>
<p> <p>
<form id="confirmationForm" name="confirmationForm" <form id="confirmationForm" name="confirmationForm"
action="<%=request.getContextPath()%>/oauth/authorize" method="post"> action="<%=request.getContextPath()%>/oauth/authorize" method="post">
<input name="user_oauth_approval" value="true" type="hidden"/> <input name="user_oauth_approval" value="true" type="hidden"/>
<input name="authorize" value="Authorize" type="submit" class="btn success large"/> <input name="authorize" value="Authorize" type="submit" class="btn success large"/>
</form> </form>
&nbsp; &nbsp;
<form id="denialForm" name="denialForm" action="<%=request.getContextPath()%>/oauth/authorize" <form id="denialForm" name="denialForm" action="<%=request.getContextPath()%>/oauth/authorize"
method="post"> method="post">
<input name="user_oauth_approval" value="false" type="hidden"/> <input name="user_oauth_approval" value="false" type="hidden"/>
<input name="deny" value="Deny" type="submit" class="btn secondary large"/> <input name="deny" value="Deny" type="submit" class="btn secondary large"/>
</form> </form>
</p> </p>
<a href="#" class="small">learn more</a> <a href="#" class="small">learn more</a>
</div>
</authz:authorize> </authz:authorize>