28 lines
1.4 KiB
HTML
28 lines
1.4 KiB
HTML
<section class="col-md-offset-4 col-md-4 login-container">
|
|
<form>
|
|
<h4 class="text-center">Sign in</h4>
|
|
<div class="form-group">
|
|
<label for="dap-address">Address</label>
|
|
<button class="btn btn-link" ng-click="vm.toggleAdvanced()" ng-if="vm.independentIssuer">hide advanced</button>
|
|
<button class="btn btn-link" ng-click="vm.toggleAdvanced()" ng-if="!vm.independentIssuer">show advanced</button>
|
|
<input type="text" class="form-control" placeholder="Email" ng-model="vm.newSubject" ng-change="vm.setSubject()">
|
|
</div>
|
|
<div ng-if="vm.independentIssuer">
|
|
<div class="form-group">
|
|
<label for="dap-issuer">Issuer</label>
|
|
<input type="text" class="form-control" placeholder="Issuer" ng-model="vm.newIssuer" ng-change="vm.setIssuer()">
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-default" ng-click="vm.signIn()">Login with <span ng-bind="vm.issuerName"></span></button>
|
|
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<div>
|
|
Demo: <button class="btn btn-link" ng-click="vm.independentIssuer = true; vm.newSubject = 'coolaj86@gmail.com'; vm.newIssuer = 'provider.aj.daplie.me'; vm.instaauth();">coolaj86@aj.daplie.me</button>
|
|
<button class="btn btn-link" ng-click="vm.independentIssuer = true; vm.newSubject = 'coolaj86@gmail.com'; vm.newIssuer = 'oauth3.org'; vm.instaauth();">coolaj86@oauth3.org</button>
|
|
</div>
|
|
|
|
</form>
|
|
</section>
|