mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-16 16:50:54 +08:00
58 lines
2.1 KiB
Plaintext
58 lines
2.1 KiB
Plaintext
@using OpenAuth.WebApi.Areas.SSO.Models
|
|
@model PassportLoginRequest
|
|
@{
|
|
ViewBag.Title = "用户授权应用登录";
|
|
|
|
var appinfo = TempData["AppInfo"] as AppInfo;
|
|
}
|
|
|
|
<div class="row">
|
|
|
|
@using (Html.BeginForm("Index", "Login", FormMethod.Post, new { @class = "form-horizontal", style = "max-width: 390px; padding-top:50px; margin: 0 auto;" }))
|
|
{
|
|
if (appinfo != null)
|
|
{
|
|
<div class="form-group">
|
|
<div class="col-md-11 col-md-offset-1">
|
|
<div style="text-align: center;">
|
|
<img src="@appinfo.Icon" style="width: 128px; height: 128px;" title="@appinfo.Title">
|
|
<div class="caption">
|
|
<h3>@appinfo.Title</h3>
|
|
<p style="text-align: left;">
|
|
<small>@appinfo.Remark</small>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.UserName, new { @class = "col-md-3 control-label" })
|
|
<div class="col-md-9">
|
|
@Html.TextBoxFor(model => model.UserName, new { @class = "form-control input-lg", style = "width: 280px", placeholder = "登录邮箱" })
|
|
@Html.HiddenFor(model => model.AppKey)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Password, new { @class = "col-md-3 control-label" })
|
|
<div class="col-md-9">
|
|
@Html.PasswordFor(model => model.Password, new { @class = "form-control input-lg", style = "width: 280px", placeholder = "登录密码" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-9 col-md-offset-3">
|
|
@Html.ValidationSummary(false)
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-md-9 col-md-offset-3 ">
|
|
<button type="submit" class="btn btn-primary">登录</button>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
</div> |