Files
matrix/cygnus-onprem-app/build/WebContent/WEB-INF/app/login.jsp

93 lines
4.5 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!doctype html>
<html lang="en">
<head>
<meta charset="ISO-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="<c:url value='/css/bootstrap-5.3.8.min.css' />" rel="stylesheet" />
<link href="<c:url value='/css/matrix-v2.css' />" rel="stylesheet" />
<link href="<c:url value='/css/login-v2.css?v=4' />" rel="stylesheet" />
<script src="<c:url value='/js/bootstrap-5.3.8.bundle.min.js' />" defer></script>
<script src="<c:url value='/js/login-v2.js?v=3' />" defer></script>
<title>Cygnus 1.0 | Login</title>
<script src="/matrix/js/matrix-accessibility-v1.js?v=1" defer></script>
<link href="/matrix/css/matrix-theme-v2.css?v=4" rel="stylesheet" type="text/css" />
</head>
<body class="matrix-v2 matrix-login"
data-context-path="${pageContext.request.contextPath}"
data-birthday-url="<c:url value='/ver/fetchdob' />">
<header class="matrix-login__brand" aria-label="Cygnus application">
<div class="matrix-login__brand-inner">
<span class="matrix-login__product"><img src="<c:url value='/images/optmale.png' />" width="16" height="16" alt="" /> Cygnus 1.0</span>
<span class="matrix-login__company">Secure operations portal</span>
</div>
</header>
<main class="matrix-login__main">
<section id="birthdayBanner" class="matrix-login__birthday"
aria-live="polite" aria-label="Birthday announcements" hidden></section>
<section class="card matrix-login__card shadow-sm" aria-labelledby="loginTitle">
<div class="matrix-login__card-heading">
<div>
<h1 id="loginTitle">Welcome back</h1>
<p>Sign in with your Cygnus account.</p>
</div>
</div>
<div class="card-body">
<c:if test="${not empty login.errMsg}">
<c:set var="loginErrorParts" value="${fn:split(login.errMsg, ':')}" />
<div class="alert alert-danger py-2 px-3 mb-3" role="alert">
<c:choose>
<c:when test="${fn:length(loginErrorParts) gt 2}">
<c:out value="${loginErrorParts[2]}" />
</c:when>
<c:otherwise>
<c:out value="${login.errMsg}" />
</c:otherwise>
</c:choose>
</div>
</c:if>
<form:form id="loginform" method="post"
action="${pageContext.request.contextPath}/ver/authenticatelogin"
modelAttribute="login">
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<form:input path="Loginid" id="username" cssClass="form-control form-control-sm"
autocomplete="username" maxlength="100" autofocus="autofocus" />
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<form:password path="Password" id="password" cssClass="form-control form-control-sm"
autocomplete="current-password" maxlength="100" />
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-sm"
name="btnlogin" id="btnlogin">Sign in</button>
</div>
</form:form>
</div>
</section>
<aside class="alert alert-info mb-0" aria-labelledby="securityNoticeTitle">
<strong id="securityNoticeTitle">Important:</strong>
We do not ask you to share personal information other than your user ID and password
when you sign in. Do not disclose your user ID or password in written or oral
communication with anyone.
</aside>
</main>
<footer class="matrix-login__footer">
Copyright &copy; 2026 SarasCore. All rights reserved.
</footer>
</body>
</html>