mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Prefill email field when "create account" is clicked.
This commit is contained in:
@@ -383,6 +383,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
onEmailBlur(event: Event) {
|
||||
const emailInput = event.target as HTMLInputElement;
|
||||
this.formGroup.controls.email.setValue(emailInput.value);
|
||||
this.loginEmailService.setLoginEmail(this.formGroup.value.email);
|
||||
}
|
||||
|
||||
protected async goToHint(): Promise<void> {
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
StateProvider,
|
||||
} from "../../../../../common/src/platform/state";
|
||||
import { LoginEmailServiceAbstraction } from "../../abstractions/login-email.service";
|
||||
import { Injectable } from "@angular/core";
|
||||
|
||||
export const LOGIN_EMAIL = new KeyDefinition<string>(LOGIN_EMAIL_MEMORY, "loginEmail", {
|
||||
deserializer: (value: string) => value,
|
||||
@@ -21,6 +22,7 @@ export const STORED_EMAIL = new KeyDefinition<string>(LOGIN_EMAIL_DISK, "storedE
|
||||
deserializer: (value: string) => value,
|
||||
});
|
||||
|
||||
@Injectable()
|
||||
export class LoginEmailService implements LoginEmailServiceAbstraction {
|
||||
private rememberEmail: boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user