src/Hx.IdentityServer/Views/Oauth2/Authorize.cshtml

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@model Hx.IdentityServer.Model.Account.LoginViewModel
@{
    ViewBag.Title = "授权";
    Layout = "_Layout";
}
@section styles{
    <link rel="stylesheet" href="~/hx/css/hx.login.css" />
    <link rel="stylesheet" href="~/hx/css/hx.login.bg.css" />
}
<div class="hx-login-wrapper">
    <div class="hx-login-container">
        <h1>海·星の博客</h1>

        <partial name="_ValidationSummary" />
        @if (Model.EnableLocalLogin)
        {
            <form asp-route="authorize" asp-route-returnUrl="@Model.ReturnUrl" class="form hx-login-form">
                <input type="hidden" asp-for="ReturnUrl" />
                <input class="hx-login-name" value="alice" placeholder="Username" asp-for="Username">
                <input class="hx-login-pass" type="password" value="Pass123$" placeholder="Password" asp-for="Password" autocomplete="off">

                @if (Model.AllowRememberLogin)
                {
                    <div class="hx-login-remember">
                        <label asp-for="RememberLogin">
                            <input asp-for="RememberLogin">
                            <strong>记住我</strong>
                        </label>
                    </div>
                }
                <button type="submit" class="hx-login" name="button" value="login">Login</button>
                <button name="button" value="cancel">Cancel</button>
                <p class="hx-to-register"><a href="/account/register" class="register">没有账号? 去注册</a><a href="/account/forgot-password" class="reset">忘记密码?重置</a></p>
            </form>
        }

        @if (!Model.EnableLocalLogin && !Model.VisibleExternalProviders.Any())
        {
            <div class="alert alert-warning">
                <strong>无效的登录请求</strong>
                没有为此客户端配置登录方案。
            </div>
        }
    </div>

    <ul class="hx-login-bg-bubbles">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
后面还有 3 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。