mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-09 21:16:18 +08:00
Remove manual input
This commit is contained in:
parent
9e10b75c60
commit
04dadc28c2
1 changed files with 36 additions and 47 deletions
|
@ -1,26 +1,15 @@
|
|||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="col-xs-2 nopadding">
|
||||
OTP Type
|
||||
Upload your OTP qr code
|
||||
</div>
|
||||
<div class="col-xs-6 nopadding">
|
||||
<label for="otpImg"><input type="radio" name="seletcOTPType"
|
||||
value="image" ng-model="otpType"
|
||||
id="otpImg">Upload an image</label>
|
||||
<label for="otpStr"><input type="radio" name="seletcOTPType"
|
||||
value="string" ng-model="otpType"
|
||||
id="otpStr">Set the secret
|
||||
manually</label>
|
||||
</div>
|
||||
<div class="col-xs-12 nopadding">
|
||||
<input type="file" qrread on-read="parseQR(qrdata)"
|
||||
on-read="parseQR(qrdata)" ng-show="otpType==='image'"/>
|
||||
<label ng-show="otpType==='string'">Enter the two-factor
|
||||
secret</label>
|
||||
<input type="text" ng-model="currentItem.otpsecret.secret"
|
||||
class="otpSecret form-control" ng-show="otpType==='string'"/>
|
||||
<input type="file" qrread on-read="parseQR(qrdata)" class="input_secret"
|
||||
on-read="parseQR(qrdata)" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="col-xs-12" ng-if="storedCredential.otp">Current OTP settings</div>
|
||||
<div class="col-xs-5 col-sm-4 col-md-2" ng-if="storedCredential.otp.qr_uri">
|
||||
|
|
Loading…
Add table
Reference in a new issue