adjust authenticator qr code
This commit is contained in:
parent
11336da6df
commit
3b22764368
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
$scope.model = {
|
$scope.model = {
|
||||||
key: formatString(_key),
|
key: formatString(_key),
|
||||||
qr: 'https://chart.googleapis.com/chart?chs=123x123&chld=L|0&cht=qr&chl=otpauth://totp/' +
|
qr: 'https://chart.googleapis.com/chart?chs=160x160&chld=L|0&cht=qr&chl=otpauth://totp/' +
|
||||||
_issuer + ':' + encodeURIComponent(_profile.email) +
|
_issuer + ':' + encodeURIComponent(_profile.email) +
|
||||||
'%3Fsecret=' + encodeURIComponent(_key) +
|
'%3Fsecret=' + encodeURIComponent(_key) +
|
||||||
'%26issuer=' + _issuer
|
'%26issuer=' + _issuer
|
||||||
|
|
|
@ -74,10 +74,10 @@
|
||||||
<hr ng-if="enabled" />
|
<hr ng-if="enabled" />
|
||||||
<h4 ng-if="!enabled" style="margin-top: 30px;">2. Scan this QR code with your authenticator app</h4>
|
<h4 ng-if="!enabled" style="margin-top: 30px;">2. Scan this QR code with your authenticator app</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4 text-center">
|
<div class="col-sm-4 text-center">
|
||||||
<p><img ng-src="{{model.qr}}" alt="QR" /></p>
|
<p><img ng-src="{{model.qr}}" alt="QR" /></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-sm-8">
|
||||||
<p>
|
<p>
|
||||||
<strong>Can't scan the code?</strong> You can add the code to your application manually using the
|
<strong>Can't scan the code?</strong> You can add the code to your application manually using the
|
||||||
following details:
|
following details:
|
||||||
|
|
Loading…
Reference in New Issue