<%--
  #%L
  ACM Service: User Login and Authentication
  %%
  Copyright (C) 2014 - 2018 ArkCase LLC
  %%
  This file is part of the ArkCase software. 
  
  If the software was purchased under a paid ArkCase license, the terms of 
  the paid license agreement will prevail.  Otherwise, the software is 
  provided under the following open source license terms:
  
  ArkCase is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
   
  ArkCase is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License for more details.
  
  You should have received a copy of the GNU Lesser General Public License
  along with ArkCase. If not, see <http://www.gnu.org/licenses/>.
  #L%
  --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  User: riste.tutureski
  Date: 8/5/2015
  Time: 12:44
--%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>You have been logged out. | ArkCase</title>

    <link rel="stylesheet" href="<%= request.getContextPath()%>/node_modules/@bower_components/bootstrap/dist/css/bootstrap.css">
    <link rel="stylesheet" href="<%= request.getContextPath()%>/assets/css/login.css">
    <!-- custom css-->
    <link rel="stylesheet" href="<%= request.getContextPath()%>/branding/customcss">
</head>
<body>
<div class="login-wrapper">
    <div class="logo">
        <img src="<%= request.getContextPath()%>/branding/loginlogo.png" style="max-width: 100%;">
    </div>

    <header class="text-center">
        <c:choose>
            <c:when test="${'4'.equals(param.login_error)}">
                <div class="alert alert-danger">
                    User not found.
                </div>
                <div><a href="<%= request.getContextPath()%>/oauth-login">Proceed to login</a></div>
            </c:when>
            <c:when test="${'3'.equals(param.login_error)}">
                <div class="alert alert-danger">
                   Invalid credentials.
                </div>
                <div><a href="<%= request.getContextPath()%>/oauth-login">Proceed to login</a></div>
            </c:when>
            <c:when test="${'2'.equals(param.login_error)}">
                <div class="alert alert-danger">
                    Your session has been invalidated due to concurrent session limit!
                </div>
            </c:when>
            <c:when test="${'1'.equals(param.login_error)}">
                <div class="alert alert-danger">
                    Your session has expired!
                </div>
                <div><a href="<%= request.getContextPath()%>/oauth-login">Proceed to login</a></div>
            </c:when>
            <c:otherwise>
                <div class="alert alert-success">
                    You have successfully logged out.
                </div>
            </c:otherwise>
        </c:choose>
    </header>

    <p></p>

</div>

<footer id="footer">
    <div class="text-center padder">
        <p>
            <small><span>ArkCase</span><br>&copy;<span>2014, 2015, 2016, 2017</span></small>
        </p>
    </div>
</footer>
</body>
</html>
