implements an AccessDenied page
This commit is contained in:
17
Yavsc/Views/Account/AccessDenied.cshtml
Normal file
17
Yavsc/Views/Account/AccessDenied.cshtml
Normal file
@ -0,0 +1,17 @@
|
||||
@{
|
||||
ViewData["Title"] = SR["Forbidden"];
|
||||
}
|
||||
|
||||
L'accès à cette ressource est protégé.
|
||||
|
||||
@if (ViewBag.UserIsSignedIn) {
|
||||
|
||||
@:Vous ne possédez pas les droits suffisants pour y acceder.
|
||||
|
||||
<a class="btn btn-lg btn-success" asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@Model" >@SR["Login"] avec un autre compte</a>
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
<a class="btn btn-lg btn-success" class="success" asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@Model" >@SR["Login"]</a>
|
||||
}
|
Reference in New Issue
Block a user