Parcourir la source

Merge pull request #285 from Moonlight-Panel/ImproveTotpSetup

Improved totp setup
Marcel Baumgartner il y a 1 an
Parent
commit
a4be4bdc52

+ 1 - 0
Moonlight/Pages/_Layout.cshtml

@@ -109,6 +109,7 @@
 <script src="https://www.google.com/recaptcha/api.js"></script>
 
 <script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.7.0/lib/xterm-addon-fit.min.js"></script>
+<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
 
 <script src="/_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
 <script>require.config({ paths: { 'vs': '/_content/BlazorMonaco/lib/monaco-editor/min/vs' } });</script>

+ 3 - 0
Moonlight/Shared/Views/Profile/Security.razor

@@ -159,6 +159,9 @@
                             }
                             <img src="data:image/png;base64,@(base64)" alt="" class="mw-200px mt-2">
                         </div>
+                        <div class="mt-3 text-center">
+                            <span class="h3">@(IdentityService.User.TotpSecret)</span>
+                        </div>
                         <div class="mt-3 d-flex justify-content-center">
                             <div class="input-group">
                                 <input type="text"