mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
Removed self-hosted restriction from Login with Device (#5441)
* Removed self-hosted restriction from Login with Device. * Updated showPasswordless client-side flag to true for self-hosted. * Linting * Linting
This commit is contained in:
@@ -98,7 +98,7 @@ export class LoginComponent extends BaseLoginComponent implements OnDestroy {
|
||||
|
||||
async ngOnInit() {
|
||||
await super.ngOnInit();
|
||||
await this.checkSelfHosted();
|
||||
await this.getLoginWithDevice(this.loggedEmail);
|
||||
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
|
||||
this.ngZone.run(() => {
|
||||
switch (message.command) {
|
||||
@@ -151,7 +151,7 @@ export class LoginComponent extends BaseLoginComponent implements OnDestroy {
|
||||
// eslint-disable-next-line rxjs/no-async-subscribe
|
||||
childComponent.onSaved.pipe(takeUntil(this.componentDestroyed$)).subscribe(async () => {
|
||||
modal.close();
|
||||
await this.checkSelfHosted();
|
||||
await this.getLoginWithDevice(this.loggedEmail);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -188,10 +188,4 @@ export class LoginComponent extends BaseLoginComponent implements OnDestroy {
|
||||
const email = this.loggedEmail;
|
||||
document.getElementById(email == null || email === "" ? "email" : "masterPassword").focus();
|
||||
}
|
||||
|
||||
private async checkSelfHosted() {
|
||||
this.selfHosted = this.environmentService.isSelfHosted();
|
||||
|
||||
await this.getLoginWithDevice(this.loggedEmail);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
},
|
||||
"flags": {
|
||||
"secretsManager": false,
|
||||
"showPasswordless": false
|
||||
"showPasswordless": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user