aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_modals
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-03-24 06:31:08 +0100
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-03-24 06:31:08 +0100
commit042482a1bbd6ea3460acf3d71bfe3ef64b05524a (patch)
treee79413f97a8c9f97c978b5048ab89278ab0e6a41 /frontend/src/app/_modals
parent0aa45260963dbf0a52726f791c3813928a1bcebc (diff)
parent1113f094ffee030fd9892deb7577927419860013 (diff)
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
# Conflicts: # frontend/src/app/app.module.ts
Diffstat (limited to 'frontend/src/app/_modals')
-rw-r--r--frontend/src/app/_modals/register-modal/register-modal.component.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/app/_modals/register-modal/register-modal.component.ts b/frontend/src/app/_modals/register-modal/register-modal.component.ts
index c045f1ce..13ef7eba 100644
--- a/frontend/src/app/_modals/register-modal/register-modal.component.ts
+++ b/frontend/src/app/_modals/register-modal/register-modal.component.ts
@@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { AuthService } from 'src/app/_services/auth.service';
+import User from 'src/app/_data/User';
@Component({
selector: 'app-register-modal',
@@ -124,12 +125,13 @@ export class RegisterModalComponent implements OnInit {
if (!(this.wrongFirstNameBool || this.wrongLastNameBool || this.wrongUsernameBool ||
this.wrongEmailBool || this.wrongPass1Bool || this.wrongPass2Bool)) { //sve ok, registruj ga
- let user = {
+ let user: User = {
firstName: this.firstName,
lastName: this.lastName,
username: this.username,
password: this.pass1,
- email: this.email
+ email: this.email,
+ photoId: "1"
}
this.authService.register(user)