generated from example/golang-server-template
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>oauth2 example</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<style>
|
|
.primary {
|
|
color: #42b883;
|
|
}
|
|
.bg-primary {
|
|
background-color: #42b883;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<h1 class="p-6 max-w-xs mx-auto text-center font-medium text-lg">用户登录</h1>
|
|
<form class="p-6 max-w-xs mx-auto bg-white rounded-xl shadow-lg gap-x-4" action="/v1/oauth2/login" method="post">
|
|
<p class="flex justify-between">
|
|
<label for="username">邮箱</label>
|
|
<input type="text" class="border w-52 h-8 px-2" name="username" />
|
|
</p>
|
|
<p class="flex justify-between mt-5">
|
|
<label for="password">密码</label>
|
|
<input type="password" class="border w-52 h-8 px-2" name="password" />
|
|
</p>
|
|
<p class="flex justify-center mt-5 mx-auto">
|
|
<button type="submit" class="bg-primary text-white rounded-full flex px-6 py-1">登录</button>
|
|
</p>
|
|
</form>
|
|
<p class="m-4 max-w-xs mx-auto text-center text-sm text-neutral-400">测试账号/密码: admin/admin</p>
|
|
<p class="m-3 max-w-xs mx-auto text-center text-sm text-red-600">{{.Message}}</p>
|
|
</body>
|
|
</html>
|