fix logout issue introduced when logging was added

This commit is contained in:
Shaun Walker
2019-10-24 22:19:13 -04:00
parent 3d7ae6a743
commit 15460eafb7
3 changed files with 4 additions and 4 deletions

View File

@ -81,10 +81,10 @@ namespace Oqtane.Services
return await http.PostJsonAsync<User>(apiurl + "/login?setcookie=" + SetCookie.ToString() + "&persistent =" + IsPersistent.ToString(), User);
}
public async Task LogoutUserAsync()
public async Task LogoutUserAsync(User User)
{
// best practices recommend post is preferrable to get for logout
await http.PostJsonAsync(apiurl + "/logout", null);
await http.PostJsonAsync(apiurl + "/logout", User);
}
}
}