Fix tests

This commit is contained in:
nicolas.dorier 2022-01-07 21:47:19 +09:00
parent 84bd8a6e98
commit 88bc1c64d2
No known key found for this signature in database
GPG key ID: 6618763EF09186FE
3 changed files with 3 additions and 0 deletions

View file

@ -167,6 +167,7 @@ namespace BTCPayServer.Tests
Assert.Contains("ReturnUrl=%2Fserver%2Fusers", s.Driver.Url);
//Change Password & Log Out
s.GoToHome();
s.Driver.FindElement(By.Id("Nav-Account")).Click();
s.Driver.FindElement(By.Id("SectionNav-ChangePassword")).Click();
s.Driver.FindElement(By.Id("OldPassword")).SendKeys("123456");

View file

@ -519,6 +519,7 @@ namespace BTCPayServer.Controllers
public bool RegisteredAdmin { get; set; }
[HttpGet]
[Route("logout")]
public async Task<IActionResult> Logout()
{
await _signInManager.SignOutAsync();

View file

@ -76,6 +76,7 @@ namespace BTCPayServer.Hosting
{
opt.LoginPath = "/login";
opt.AccessDeniedPath = "/Error/Denied";
opt.LogoutPath = "/logout";
});
services.Configure<SecurityStampValidatorOptions>(opts =>