49 lines
1.5 KiB
HTML
49 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>授权登录到 {{ .client_name }} 平台</h3>
|
|
<div class="userinfo">
|
|
<article style="display: flex; align-items: center;">
|
|
<div style="height:50px; width:50px;">
|
|
<img src="{{ .user.avatar }}"/>
|
|
</div>
|
|
<div style="margin-left:20px; ">
|
|
{{ .user.username }}
|
|
</div>
|
|
</article>
|
|
</div>
|
|
<form action="/oauth/v2/approve" method="POST">
|
|
<fieldset>
|
|
<input type="hidden" name="client_id" value="{{ .client_id }}"/>
|
|
<input type="hidden" name="redirect_uri" value="{{ .redirect_uri }}"/>
|
|
<input type="hidden" name="scope" value="{{ .scope }}"/>
|
|
<input type="hidden" name="state" value="{{ .state }}"/>
|
|
</fieldset>
|
|
|
|
<div style="display: flex;">
|
|
<button type="button" class="contrast" style="flex:1; margin-right: 10px">取消</button>
|
|
<button type="submit" style="flex: 1;">授权</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|