mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
print folder, collections, and ciphers to vault
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
<form>
|
||||
Login form.
|
||||
<form (ngSubmit)="onSubmit()" #heroForm="ngForm">
|
||||
<label for="email">Email Address</label>
|
||||
<input id="email" type="text" [(ngModel)]="email" name="email" required /><br /><br />
|
||||
<label for="master-password">Master Password</label>
|
||||
<input id="master-password" type="password" [(ngModel)]="masterPassword"
|
||||
name="masterPassword" required /><br /><br />
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
|
||||
@@ -5,6 +5,8 @@ import {
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
import { AuthService } from 'jslib/abstractions/auth.service';
|
||||
|
||||
@Component({
|
||||
@@ -12,11 +14,19 @@ import { AuthService } from 'jslib/abstractions/auth.service';
|
||||
template: template
|
||||
})
|
||||
export class LoginComponent implements OnInit {
|
||||
constructor(authService: AuthService) {
|
||||
console.log(authService);
|
||||
email: string = '';
|
||||
masterPassword: string = '';
|
||||
|
||||
constructor(private authService: AuthService, private router: Router) {
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
// TODO?
|
||||
}
|
||||
|
||||
async onSubmit() {
|
||||
const response = await this.authService.logIn(this.email, this.masterPassword);
|
||||
this.router.navigate(['vault']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user