Change Password

<form> <sheet> <div class="row container"> <div class="mb-3"> <h3 class="font-weight-bold">Scan this barcode with your app</h3> <div> Scan the image below with the authenticator app on your phone.<br/> If you cannot scan the barcode, here are some alternative options: <ul> <li><field class="text-wrap" name="url" widget="url" options="{'website_path': True}" text="Click on this link to open your authenticator app"/></li> <li>Or enter the secret code manually: <a data-toggle="collapse" href="#collapseTotpSecret" role="button" aria-expanded="false" aria-controls="collapseTotpSecret">show the code</a> </li> </ul> <!-- code outside list to have more horiz space on mobile --> <div class="collapse col-12 col-md-6" id="collapseTotpSecret"> <div class="card card-body"> <h3>Your two-factor secret:</h3> <code class="text-center"><field name="secret"/></code> </div> </div> </div> <field class="offset-1" name="qrcode" readonly="True" widget="image"/> <h3 class="font-weight-bold">Enter the 6-digit code from your app</h3> <div class="text-justify col-10 col-lg-6 px-0"> After scanning the barcode, the app will display a 6-digit code that you should enter below. Don't worry if the code changes in the app, it stays valid a bit longer. </div> <div class="mt-2"> <label for="code" class="col-4 col-md-12 px-0">Verification Code</label> <field required="True" name="code" class="col-10 col-md-6 px-0"/> </div> </div> </div> </sheet> <footer> <button type="object" name="enable" class="btn btn-primary" string="Enable two-factor authentication"/> <button string="Cancel" special="cancel"/> </footer> </form>

Two-factor authentication

Two-factor authentication not enabled