mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-13 13:49:37 +01:00
Do not prompt for new login if user is not logged in
This commit is contained in:
parent
7b3f8d4223
commit
daf20bbf57
@ -184,6 +184,10 @@ export default class NotificationBackground {
|
||||
}
|
||||
|
||||
private async addLogin(loginInfo: AddLoginRuntimeMessage, tab: chrome.tabs.Tab) {
|
||||
if (!await this.userService.isAuthenticated()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const loginDomain = Utils.getDomain(loginInfo.url);
|
||||
if (loginDomain == null) {
|
||||
return;
|
||||
@ -194,7 +198,7 @@ export default class NotificationBackground {
|
||||
normalizedUsername = normalizedUsername.toLowerCase();
|
||||
}
|
||||
|
||||
if (await this.userService.isAuthenticated() && await this.vaultTimeoutService.isLocked()) {
|
||||
if (await this.vaultTimeoutService.isLocked()) {
|
||||
if (!await this.allowPersonalOwnership()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user