mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Fix tests
This commit is contained in:
parent
84bd8a6e98
commit
88bc1c64d2
3 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -519,6 +519,7 @@ namespace BTCPayServer.Controllers
|
|||
public bool RegisteredAdmin { get; set; }
|
||||
|
||||
[HttpGet]
|
||||
[Route("logout")]
|
||||
public async Task<IActionResult> Logout()
|
||||
{
|
||||
await _signInManager.SignOutAsync();
|
||||
|
|
|
@ -76,6 +76,7 @@ namespace BTCPayServer.Hosting
|
|||
{
|
||||
opt.LoginPath = "/login";
|
||||
opt.AccessDeniedPath = "/Error/Denied";
|
||||
opt.LogoutPath = "/logout";
|
||||
});
|
||||
|
||||
services.Configure<SecurityStampValidatorOptions>(opts =>
|
||||
|
|
Loading…
Add table
Reference in a new issue