aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_modals
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_modals')
-rw-r--r--frontend/src/app/_modals/login-modal/login-modal.component.ts1
-rw-r--r--frontend/src/app/_modals/register-modal/register-modal.component.ts2
2 files changed, 0 insertions, 3 deletions
diff --git a/frontend/src/app/_modals/login-modal/login-modal.component.ts b/frontend/src/app/_modals/login-modal/login-modal.component.ts
index e1535a25..b28d9799 100644
--- a/frontend/src/app/_modals/login-modal/login-modal.component.ts
+++ b/frontend/src/app/_modals/login-modal/login-modal.component.ts
@@ -33,7 +33,6 @@ export class LoginModalComponent implements OnInit {
doLogin() {
if (this.username.length > 0 && this.password.length > 0) {
this.authService.login(this.username, this.password).subscribe((response) => {
- console.log(response);
if (response == "Username doesn't exist" || response == "Wrong password") {
this.wrongCreds = true;
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 05888589..11f6727d 100644
--- a/frontend/src/app/_modals/register-modal/register-modal.component.ts
+++ b/frontend/src/app/_modals/register-modal/register-modal.component.ts
@@ -143,13 +143,11 @@ export class RegisterModalComponent implements OnInit {
this.authService.register(user)
.subscribe(
(response) => {
- console.log(response);
if (response == 'User added') {
//nakon sto je registrovan, nek bude ulogovan
this.authService.login(this.username, this.pass1).subscribe((response) => {
this.authService.authenticate(response);
- console.log("close button");
(<HTMLSelectElement>document.getElementById('closeButtonReg')).click();
//(<HTMLSelectElement>document.getElementById('linkToLoginModal')).click();
}, (error) => console.warn(error));