mirror of
https://github.com/bitwarden/web
synced 2025-12-10 21:33:16 +00:00
[SG-279] Fix unlock button not working after logging in through SSO (#1672)
This commit is contained in:
@@ -55,7 +55,7 @@ export class LockComponent extends BaseLockComponent {
|
|||||||
await super.ngOnInit();
|
await super.ngOnInit();
|
||||||
this.onSuccessfulSubmit = async () => {
|
this.onSuccessfulSubmit = async () => {
|
||||||
const previousUrl = this.routerService.getPreviousUrl();
|
const previousUrl = this.routerService.getPreviousUrl();
|
||||||
if (previousUrl !== "/" && previousUrl.indexOf("lock") === -1) {
|
if (previousUrl && previousUrl !== "/" && previousUrl.indexOf("lock") === -1) {
|
||||||
this.successRoute = previousUrl;
|
this.successRoute = previousUrl;
|
||||||
}
|
}
|
||||||
this.router.navigateByUrl(this.successRoute);
|
this.router.navigateByUrl(this.successRoute);
|
||||||
|
|||||||
Reference in New Issue
Block a user