mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Fix Return to Vault button
This commit is contained in:
parent
86a12efa76
commit
de625894cf
@ -2,17 +2,21 @@
|
||||
using Bit.Portal.Utilities;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Bit.Core.Settings;
|
||||
|
||||
namespace Bit.Portal.Controllers
|
||||
{
|
||||
public class AuthController : Controller
|
||||
{
|
||||
private readonly EnterprisePortalTokenSignInManager _signInManager;
|
||||
private readonly GlobalSettings _globalSettings;
|
||||
|
||||
public AuthController(
|
||||
EnterprisePortalTokenSignInManager signInManager)
|
||||
EnterprisePortalTokenSignInManager signInManager,
|
||||
GlobalSettings globalSettings)
|
||||
{
|
||||
_signInManager = signInManager;
|
||||
_globalSettings = globalSettings;
|
||||
}
|
||||
|
||||
[HttpGet("~/login")]
|
||||
@ -59,5 +63,12 @@ namespace Bit.Portal.Controllers
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet("~/vault")]
|
||||
public async Task<RedirectResult> Vault()
|
||||
{
|
||||
await _signInManager.SignOutAsync();
|
||||
return Redirect(_globalSettings.BaseServiceUri.Vault);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#">
|
||||
<a class="dropdown-item" asp-area="" asp-controller="Auth" asp-action="Vault">
|
||||
<i class="fa fa-fw fa-share fa-flip-horizontal" aria-hidden="true"></i>
|
||||
Return to My Vault
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user