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 {
|
||||
this.messageService.sendMessage(environment.urlCL,"register",{username: this.login2, password: this.password2}).subscribe(data => {
|
||||
if (data.status !== 'ok') {
|
||||
console.log(data.data.reason);
|
||||
this.succesMessage = '';
|
||||
this.errorMessage = data.data.reason;
|
||||
} else {
|
||||
//console.log(data.data);
|
||||
this.errorMessage = '';
|
||||
this.succesMessage = data.data;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Reference in a new issue