dnet45/modules/uoa-repository-dashboard-gui/trunk/app/services/authentication.service.ts @ 50504
1 | 50086 | myrto.kouk | import {Injectable} from "@angular/core"; |
---|---|---|---|
2 | |||
3 | @Injectable() |
||
4 | 50110 | myrto.kouk | export class AuthenticationService { |
5 | 50239 | myrto.kouk | isLoggedIn: boolean = false; |
6 | userName: string = ''; |
||
7 | userEmail: string = ''; |
||
8 | 50110 | myrto.kouk | |
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 | 50239 | myrto.kouk | |
25 | getUserEmail() { |
||
26 | return this.userEmail; |
||
27 | }
|
||
28 | 50086 | myrto.kouk | }
|