32 lines
1.8 KiB
HTML
32 lines
1.8 KiB
HTML
<section class="col-md-offset-4 col-md-4 login-container" ng-init="vm.initListLoggedInProfiles()">
|
|
<form>
|
|
<h4 class="text-center">Sign in</h4>
|
|
<a href="#!/home" class="current-user-container" ng-repeat="profile in vm.Auth.sessions track by $index" ng-click="vm.selectSession(profile);">
|
|
<div class="current-user-split"><i class="fa fa-user"></i></div>
|
|
<div class="current-user-text">Resume with {{ profile.email }} | {{ profile.issuer }}</div>
|
|
</a>
|
|
<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>
|