2016-09-14 05:03:12 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
2017-02-18 04:25:18 +08:00
|
|
|
<div class="col-xs-4 nopadding">
|
|
|
|
<span class="otpText">{{ 'upload.qr' | translate}}</span>
|
|
|
|
<select ng-model="otpType">
|
|
|
|
<option value="qrcode">Upload QR code</option>
|
|
|
|
<option value="secret">Enter secret</option>
|
|
|
|
</select>
|
2016-09-14 05:03:12 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-6 nopadding">
|
2016-09-21 02:51:41 +08:00
|
|
|
<input type="file" qrread on-read="parseQR(qrdata)"
|
|
|
|
class="input_secret"
|
2017-02-18 04:25:18 +08:00
|
|
|
on-read="parseQR(qrdata)" ng-show="otpType === 'qrcode'"/>
|
|
|
|
<input type="text" ng-model="storedCredential.otp.secret" ng-show="otpType === 'secret'">
|
2016-09-14 05:03:12 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-14 23:39:02 +08:00
|
|
|
</div>
|
|
|
|
|
2016-09-21 02:51:41 +08:00
|
|
|
<div class="row">
|
2017-02-18 04:25:18 +08:00
|
|
|
<div class="col-xs-12" ng-if="storedCredential.otp">
|
|
|
|
<b>{{ 'current.qr' | translate}}</b>
|
2016-09-21 02:51:41 +08:00
|
|
|
</div>
|
2016-09-14 23:39:02 +08:00
|
|
|
</div>
|
2016-09-21 02:51:41 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-5 col-sm-4 col-md-2" ng-if="storedCredential.otp.qr_uri">
|
|
|
|
<img ng-src="{{storedCredential.otp.qr_uri.image}}"/>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 col-sm-5 col-md-5">
|
|
|
|
<table ng-show="storedCredential.otp">
|
|
|
|
<tr ng-show="storedCredential.otp.type">
|
2017-02-18 04:25:18 +08:00
|
|
|
<td>{{ 'type' | translate}}: </td>
|
2016-09-21 02:51:41 +08:00
|
|
|
<td>{{storedCredential.otp.type}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="storedCredential.otp.label">
|
2017-02-18 04:25:18 +08:00
|
|
|
<td>{{ 'label' | translate}}: </td>
|
2016-09-21 02:51:41 +08:00
|
|
|
<td>{{storedCredential.otp.label}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="storedCredential.otp.issuer">
|
2017-02-18 04:25:18 +08:00
|
|
|
<td>{{ 'issuer' | translate}}: </td>
|
2016-09-21 02:51:41 +08:00
|
|
|
<td>{{storedCredential.otp.issuer}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="storedCredential.otp.secret">
|
2017-02-18 04:25:18 +08:00
|
|
|
<td>{{ 'secret' | translate}}: </td>
|
2016-09-21 02:51:41 +08:00
|
|
|
<td>{{storedCredential.otp.secret}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="storedCredential.otp.secret">
|
2017-02-18 04:25:18 +08:00
|
|
|
<td>{{ 'otp' | translate}}: </td>
|
2016-09-21 02:51:41 +08:00
|
|
|
<td><span otp-generator
|
|
|
|
secret="storedCredential.otp.secret"></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-09-14 05:03:12 +08:00
|
|
|
</div>
|