Browse Source

添加未提交的登录页

huxz 8 years ago
parent
commit
76bb8c2022
1 changed files with 32 additions and 0 deletions
  1. 32 0
      sso-manage-console/src/main/resources/templates/login.html

+ 32 - 0
sso-manage-console/src/main/resources/templates/login.html

@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Title</title>
+    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
+    <style type="text/css">
+        div#login-form {
+            margin: 120px auto;
+            width: 300px;
+        }
+    </style>
+</head>
+<body>
+    <div class="container">
+        <div id="login-form">
+            <form class="form-horizontal" method="post" action="/api/login">
+                <div class="form-group">
+                    <label class="sr-only" for="userName">Email address</label>
+                    <input type="text" class="form-control" id="userName" placeholder="账号" name="userName">
+                </div>
+                <div class="form-group">
+                    <label class="sr-only" for="password">Password</label>
+                    <input type="password" class="form-control" id="password" placeholder="密码" name="password">
+                </div>
+                <button type="submit" class="btn btn-default">登录</button>
+            </form>
+        </div>
+    </div>
+    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
+</body>
+</html>