Advertisement
Guest User

Untitled

a guest
Nov 8th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. this.loginHttpService.login(this.username,this.password).subscribe((registered:IRegister[])=>{
  2. if(registered.length==1){
  3. alert("Login Successfull!!");
  4. this._router.navigate(['/account']);
  5. }
  6.  
  7.  
  8.  
  9. else if(this.username==null && this.password==null){
  10. alert("Please fill the credintials");
  11. }
  12. else if(this.username==null && this.password==this.pwd){
  13. alert("Please enter the username");
  14. }
  15. else if(this.username==this.uname && this.password==null){
  16. alert("Please enter the password");
  17. }
  18.  
  19. else{
  20. alert("Invalid Login");
  21. }
  22. })
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement