Fixed half of warnings having to do with allowing Null string objects. (#791)
This commit is contained in:
@@ -32,7 +32,7 @@ public class LogoutModel : PageModel
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IActionResult> OnPost(string returnUrl = null)
|
||||
public async Task<IActionResult> OnPost(string? returnUrl = null)
|
||||
{
|
||||
await _signInManager.SignOutAsync();
|
||||
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
|
||||
|
||||
Reference in New Issue
Block a user