@@ -54,8 +54,13 @@ export class RegisterComponent implements OnInit {
.subscribe(
(data:HttpResponse<any>)=>{
console.log("registration-",data.body.Fqtv);
this.alertService.success('Registration successful. Your FQTV number is '+'"'+data.body.Fqtv+'"'+'.'+' You can use this for your future reference.',true);
this.router.navigate(['/login']);
if(data.body.Fqtv){
this.alertService.success('Dear Customer, your registration is successful. Your Frequent Flyer Number is '+'"'+data.body.Fqtv+'"'+'.'+' Please use it for subsequent log-in.',true);
this.router.navigate(['/login']);
}else{
this.alertService.error('Registraton failed, please try again with correct value!');