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