Last change
on this file since bdd6491 was 84d0fbb, checked in by Ema <ema_spirova@…>, 3 years ago |
spring security 2.0
|
-
Property mode
set to
100644
|
File size:
742 bytes
|
Line | |
---|
1 | import { Component, OnInit } from '@angular/core';
|
---|
2 | import { Router } from '@angular/router';
|
---|
3 | import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
---|
4 | import { LoginRequest } from 'src/app/_models/dto/loginRequest';
|
---|
5 | import { UserService } from 'src/app/_services/user.service';
|
---|
6 |
|
---|
7 | @Component({
|
---|
8 | selector: 'app-login',
|
---|
9 | templateUrl: './login.component.html',
|
---|
10 | styleUrls: ['./login.component.css']
|
---|
11 | })
|
---|
12 | export class LoginComponent implements OnInit {
|
---|
13 |
|
---|
14 |
|
---|
15 | loginRequest : LoginRequest;
|
---|
16 |
|
---|
17 | constructor(private ref: DynamicDialogRef, private router: Router, private userService : UserService) {
|
---|
18 | this.loginRequest = new LoginRequest();
|
---|
19 |
|
---|
20 | }
|
---|
21 |
|
---|
22 | ngOnInit(): void {
|
---|
23 | }
|
---|
24 |
|
---|
25 | onFormLogIn(loginRequest){
|
---|
26 | this.ref.close(loginRequest);
|
---|
27 |
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.