Skip to content

Commit 3d32682

Browse files
authored
chore: add comment and fix typo (#6)
1 parent 4016b38 commit 3d32682

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sample-mvc/Controllers/HomeController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public IActionResult SignIn()
2828
return Challenge(new AuthenticationProperties { RedirectUri = "/" });
2929
}
3030

31+
// Use the `new` keyword to avoid conflict with the `ControllerBase.SignOut` method
3132
new public IActionResult SignOut()
3233
{
3334
return SignOut(new AuthenticationProperties { RedirectUri = "/" });

src/Logto.AspNetCore.Authentication/docs/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ Then, add the links to your View:
196196
<p>Is authenticated: @User.Identity?.IsAuthenticated</p>
197197
@if (User.Identity?.IsAuthenticated == true)
198198
{
199-
<a asp-controller="Home" asp-action="SignOut">Sign out</a>
199+
<a asp-controller="Home" asp-action="SignOut">Sign out</a>
200200
} else {
201-
<a asp-controller="Home" asp-action="SignIn">Sign in</a>
201+
<a asp-controller="Home" asp-action="SignIn">Sign in</a>
202202
}
203203
```
204204

0 commit comments

Comments
 (0)