-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
5 changed files
with
95 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/org/wickedsource/gitanizer/login/LoginController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.wickedsource.gitanizer.login; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@Controller | ||
public class LoginController { | ||
|
||
@GetMapping(value = "/login") | ||
public String displayLoginPage() { | ||
return "login"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | ||
<title>gitanizer login</title> | ||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/> | ||
<link rel="stylesheet" th:href="@{/static/bootstrap/css/bootstrap.min.css}"/> | ||
<link rel="stylesheet" | ||
th:href="@{https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css}"/> | ||
<link rel="stylesheet" th:href="@{https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css}"/> | ||
<link rel="stylesheet" th:href="@{/static/AdminLTE/css/AdminLTE.min.css}"/> | ||
|
||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> | ||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body class="hold-transition login-page"> | ||
<div class="login-box"> | ||
<div class="login-logo"> | ||
<i class="fa fa-code-fork"></i> | ||
<a href="/"><b>git</b>anizer</a> | ||
</div> | ||
<!-- /.login-logo --> | ||
<div class="login-box-body"> | ||
<p class="login-box-msg">Sign in to start your session</p> | ||
|
||
<form action="/do-login" method="post"> | ||
<div class="form-group has-feedback"> | ||
<input type="text" class="form-control" placeholder="User name" name="username"/> | ||
</div> | ||
<div class="form-group has-feedback"> | ||
<input type="password" class="form-control" placeholder="Password" name="password"/> | ||
</div> | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button> | ||
</div> | ||
<!-- /.col --> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
<!-- /.login-box-body --> | ||
</div> | ||
<!-- /.login-box --> | ||
|
||
<script th:src="@{/static/jQuery/jquery-2.2.3.min.js}"></script> | ||
<script th:src="@{/static/bootstrap/js/bootstrap.min.js}"></script> | ||
</body> | ||
</html> |