2017-08-18 21:13:43 +00:00
|
|
|
<section class="col-md-offset-4 col-md-4 login-container" ng-init="vm.initListLoggedInProfiles()">
|
2017-08-14 18:58:01 +00:00
|
|
|
<form>
|
|
|
|
<h4 class="text-center">Sign in</h4>
|
2017-08-18 21:13:43 +00:00
|
|
|
<a href="#!/home" class="current-user-container" ng-repeat="profile in vm.activeProfiles">
|
|
|
|
<div class="current-user-split"><i class="fa fa-user"></i></div>
|
|
|
|
<div class="current-user-text">Resume with {{ profile.email }}</div>
|
|
|
|
</a>
|
2017-08-14 18:58:01 +00:00
|
|
|
<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>
|
2017-08-09 04:23:19 +00:00
|
|
|
</section>
|