dnet45/modules/uoa-repository-dashboard-gui/trunk/app/services/authentication.service.ts @ 50186
1 | 50086 | myrto.kouk | import {Injectable} from "@angular/core"; |
---|---|---|---|
2 | |||
3 | @Injectable() |
||
4 | 50110 | myrto.kouk | export class AuthenticationService { |
5 | userName: string; |
||
6 | userEmail: string; |
||
7 | isLoggedIn: boolean; |
||
8 | |||
9 | login(){ |
||
10 | this.isLoggedIn = true; |
||
11 | this.userName = 'Antonis Lempesis'; |
||
12 | this.userEmail = 'ant.lebesis@gmail.com'; |
||
13 | }
|
||
14 | |||
15 | logout(){ |
||
16 | this.isLoggedIn = false; |
||
17 | this.userName = ''; |
||
18 | this.userEmail = ''; |
||
19 | }
|
||
20 | |||
21 | register(){ |
||
22 | |||
23 | }
|
||
24 | 50086 | myrto.kouk | }
|