a guest Aug 17th, 2018 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <form class="form-inline" *ngIf="!authService.getUser()">
  2.   <div class="form-group">
  3.     <label>User: (type <em>user</em>)</label>
  4.     <input class="form-control" name="username" #username>
  5.   </div>
  6.   <div class="form-group">
  7.     <label>Password: (type <em>password</em>)</label>
  8.     <input class="form-control" type="password" name="password" #password>
  9.   </div>
  10.   <a class="btn btn-default" (click)="login(username.value, password.value)">
  11.     Submit
  12.     <div class="well" *ngIf="authService.getUser()">
  13.       Logged in as <b>{{ authService.getUser() }}</b> <a href (click)="logout()">Log out</a>
  14.     </div>
  15.     <div class="alert alert-danger" role="alert" *ngIf="message"> {{ message }}</div>
  16.   </a>
  17. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand