Show succesful messa
This commit is contained in:
parent
bb31981920
commit
e271c9ea14
1 changed files with 2 additions and 1 deletions
|
|
@ -29,10 +29,11 @@ export class RegisterComponent implements OnInit {
|
||||||
else {
|
else {
|
||||||
this.messageService.sendMessage(environment.urlCL,"register",{username: this.login2, password: this.password2}).subscribe(data => {
|
this.messageService.sendMessage(environment.urlCL,"register",{username: this.login2, password: this.password2}).subscribe(data => {
|
||||||
if (data.status !== 'ok') {
|
if (data.status !== 'ok') {
|
||||||
console.log(data.data.reason);
|
this.succesMessage = '';
|
||||||
this.errorMessage = data.data.reason;
|
this.errorMessage = data.data.reason;
|
||||||
} else {
|
} else {
|
||||||
//console.log(data.data);
|
//console.log(data.data);
|
||||||
|
this.errorMessage = '';
|
||||||
this.succesMessage = data.data;
|
this.succesMessage = data.data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Reference in a new issue