retours à la connexion et déconnexion

This commit is contained in:
Paul Schneider 2016-05-30 12:29:26 +02:00
commit 3592a678d7
5 changed files with 50 additions and 20 deletions

View file

@ -46,7 +46,9 @@
<p>
<a asp-action="ForgotPassword" asp-controller="Account">@SR["Forgot your password"]?</a>
</p>
<input type="hidden" name="ReturnUrl" value="@Model.ReturnUrl" />
<input type="hidden" name="ReturnUrl" value="@Model.AfterLoginRedirectUrl" />
@Html.AntiForgeryToken()
</form>
@ -67,6 +69,7 @@
<form action="/signin" method="post">
<input type="hidden" name="Provider" value="@description.AuthenticationScheme" />
<input type="hidden" name="ReturnUrl" value="@Model.ReturnUrl" />
<input type="hidden" name="AfterLoginRedirectUrl" value="@Model.AfterLoginRedirectUrl" />
<button class="btn btn-lg btn-success" type="submit">@SR["Connect using"] @description.DisplayName</button>
@Html.AntiForgeryToken()
</form>