56 lines
1.5 KiB
HTML
56 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.jade.min.css"
|
|
>
|
|
<title>Server Login</title>
|
|
<style>
|
|
body {
|
|
height: 100vh;
|
|
width: 100vw;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<h3>欢迎来到 Pro</h3>
|
|
<form action="/api/oauth/v2/login" method="POST">
|
|
<fieldset>
|
|
<label>
|
|
Username
|
|
<input
|
|
name="username"
|
|
placeholder="username"
|
|
autocomplete="given-name"
|
|
/>
|
|
</label>
|
|
<label>
|
|
Password
|
|
<input
|
|
type="password"
|
|
name="password"
|
|
placeholder="password"
|
|
autocomplete="password"
|
|
/>
|
|
</label>
|
|
<input type="hidden" name="client_id" value="{{ .client_id }}"/>
|
|
<input type="hidden" name="client_secret" value="{{ .client_secret }}"/>
|
|
<input type="hidden" name="redirect_uri" value="{{ .redirect_uri }}"/>
|
|
<input type="hidden" name="scope" value="{{ .scope }}"/>
|
|
</fieldset>
|
|
|
|
<input
|
|
type="submit"
|
|
value="登录"
|
|
/>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|