로그인페이지 수정.

master
강석 최 2022-02-23 14:03:45 +09:00
parent d8ffe1e454
commit d84c91496b
5 changed files with 23 additions and 14 deletions

View File

@ -34,9 +34,9 @@ public class SecurityService implements UserDetailsService{
} else {
throw new UsernameNotFoundException("접속자 정보를 찾을 수 없습니다.");
}
if (authorities.size() == 0) {
if (authorities.size() == 0) {
throw new UsernameNotFoundException("User " + member.getUserid()+ " has no GrantedAuthority");
}
}
return new EgovUserDetails(member.getUserid(), member.getPassword(), true, true, true, true, authorities, member);
}

View File

@ -18,9 +18,6 @@
<header class="header">
<div class="header_title">
<sec:authorize access="isAnonymous()">
<a href="/">모바일센터 관리시스템</a>
</sec:authorize>
<sec:authorize access="hasRole('ROLE_USER')">
<a href="/map/request">모바일센터 관리시스템</a>
</sec:authorize>

View File

@ -15,6 +15,15 @@
<link rel="stylesheet" type="text/css" href="<c:url value="/css/bootstrap-5.1.3.css"/>">
<link href="<c:out value="/css/normalize.css" />" rel="stylesheet">
<link href="<c:out value="/css/style.css" />" rel="stylesheet">
<style>
#wrap{
background-image: url("/images/main1.jpg");
background-size: cover;
margin: 0;
padding: 0;
height: 1080px;
}
</style>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
@ -22,13 +31,10 @@
<script src="<c:url value='/js/jquery-ui.min.js' />"></script>
<script src="<c:url value="/js/bootstrap-5.1.3.min.js"/>"></script>
</head>
<body class="">
<div id="wrap">
<tiles:insertAttribute name="header"/>
<section class="section">
<body>
<div id="wrap">
<tiles:insertAttribute name="center"/>
</section>
</div>
</div>
</body>
<script type="text/javascript">

View File

@ -9,6 +9,7 @@
<form method="POST" action="/j_spring_security_check">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
<input type=hidden name=login_error value="${login_error}" />
<p class="login_title">모바일센터 관리시스템</p>
<p class="login_text">
<input type="text" class="form-control" name="username" id="user_id" value="" placeholder="사용자 ID" />
</p>

View File

@ -87,7 +87,6 @@ a {
.loginWrap {
width: 400px;
margin: 0 auto;
padding: 2% 0 0 0;
position: absolute;
top: 50%;
left: 50%;
@ -95,14 +94,20 @@ a {
border: 1px solid #ccc;
box-shadow: 5px 5px 20px grey;
}
.login_title{
float: left;
font-size: 24px;
font-weight: bold;
padding-left: 20px;
box-sizing: border-box;
}
.login_text {
margin: 2% 5%;
text-align: center;
}
.loginBox {
background-color: rgba(255, 255, 255, 0.7);
background-color: rgba(255, 255, 255, 1);
overflow: hidden;
padding: 30px 0px 0px 0px;
}