Skip to content

Instantly share code, notes, and snippets.

@cerkit
Created September 23, 2014 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cerkit/de10255a8f867e5106dc to your computer and use it in GitHub Desktop.
Save cerkit/de10255a8f867e5106dc to your computer and use it in GitHub Desktop.
Login Dialog for Basic Authentication Sample - Bootstrap and AngularJS
<div class="modal h1">
<div class="h2 container alert-info modal-body" data-backdrop="static">
Login<br /><br />
<div class="alert-danger">{{error}}</div>
<ng-form class="form-horizontal">
Username:
<input class="form-control" ng-model="username" />
Password:
<input class="form-control" type="password" ng-model="password" />
<br />
<button class="btn-default" ng-click="login(username, password)">Login</button>
<br />
</ng-form>
<br />
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment