mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
print folder, collections, and ciphers to vault
This commit is contained in:
@@ -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