Add reveal for TOTP secret for manual entry (#1172)
This commit is contained in:
parent
463f826f6e
commit
64ba31c4d0
|
@ -101,6 +101,7 @@ class SettingsController < ApplicationController
|
||||||
module_size: 5,
|
module_size: 5,
|
||||||
shape_rendering: "crispEdges")
|
shape_rendering: "crispEdges")
|
||||||
|
|
||||||
|
@qr_secret = totp.secret
|
||||||
@qr_svg = "<a href=\"#{totp_url}\">#{qr}</a>"
|
@qr_svg = "<a href=\"#{totp_url}\">#{qr}</a>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,13 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<%= raw @qr_svg %>
|
<%= raw @qr_svg %>
|
||||||
|
<p>
|
||||||
|
Or to add to a device manually enter the secret:
|
||||||
|
<details>
|
||||||
|
<summary>Reveal Secret</summary>
|
||||||
|
<%= raw @qr_secret %>
|
||||||
|
</details>
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Once you have finished registering with your TOTP application, proceed to
|
Once you have finished registering with your TOTP application, proceed to
|
||||||
|
|
Loading…
Reference in New Issue