]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/account/account.component.ts
Fix login when there is an error
[github/Chocobozzz/PeerTube.git] / client / src / app / account / account.component.ts
1 import { Component, OnInit } from '@angular/core'
2 import { FormBuilder, FormGroup } from '@angular/forms'
3 import { Router } from '@angular/router'
4
5 import { NotificationsService } from 'angular2-notifications'
6
7 import { AuthService } from '../core'
8 import {
9 FormReactive,
10 User,
11 UserService,
12 USER_PASSWORD
13 } from '../shared'
14
15 @Component({
16 selector: 'my-account',
17 templateUrl: './account.component.html',
18 styleUrls: [ './account.component.scss' ]
19 })
20 export class AccountComponent implements OnInit {
21 user: User = null
22
23 constructor (private authService: AuthService) {}
24
25 ngOnInit () {
26 this.user = this.authService.getUser()
27 }
28 }