mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
@model ExternalLoginsViewModel
|
|
@{
|
|
ViewData["Title"] = "Manage your external logins";
|
|
ViewData.AddActivePage(ManageNavPages.ExternalLogins);
|
|
}
|
|
|
|
@Html.Partial("_StatusMessage", Model.StatusMessage)
|
|
@if(Model.CurrentLogins?.Count > 0)
|
|
{
|
|
<h4>Registered Logins</h4>
|
|
<table class="table">
|
|
<tbody>
|
|
@foreach(var login in Model.CurrentLogins)
|
|
{
|
|
<tr>
|
|
<td>@login.LoginProvider</td>
|
|
<td>
|
|
@if(Model.ShowRemoveButton)
|
|
{
|
|
<form asp-action="RemoveLogin" method="post">
|
|
<div>
|
|
<input asp-for="@login.LoginProvider" name="LoginProvider" type="hidden" />
|
|
<input asp-for="@login.ProviderKey" name="ProviderKey" type="hidden" />
|
|
<button type="submit" class="btn btn-default" title="Remove this @login.LoginProvider login from your account">Remove</button>
|
|
</div>
|
|
</form>
|
|
}
|
|
else
|
|
{
|
|
@:
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
@if(Model.OtherLogins?.Count > 0)
|
|
{
|
|
<h4>Add another service to log in.</h4>
|
|
<hr />
|
|
<form asp-action="LinkLogin" method="post" class="form-horizontal">
|
|
<div id="socialLoginList">
|
|
<p>
|
|
@foreach(var provider in Model.OtherLogins)
|
|
{
|
|
<button type="submit" class="btn btn-default" name="provider" value="@provider.Name" title="Log in using your @provider.DisplayName account">@provider.DisplayName</button>
|
|
}
|
|
</p>
|
|
</div>
|
|
</form>
|
|
}
|