Skip to content

Commit d69e80d

Browse files
committed
Remove unnecessary js toggle function.
1 parent c2f1f7e commit d69e80d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/templates/admin/edit_user.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</tr>
7979
<tr>
8080
<td>
81-
<label><input type="checkbox" class="vst-checkbox password-option" name="v_twofa" <?php if(!empty($v_twofa)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_twofa(this)"> <?php print __('Enable 2FA');?></label>
81+
<label><input type="checkbox" class="vst-checkbox password-option" name="v_twofa" <?php if(!empty($v_twofa)) echo "checked=yes" ?>> <?php print __('Enable 2FA');?></label>
8282
<?php if (!empty($v_twofa)) { ?>
8383
<p><?php echo __('2FA Reset Code:').' '.$v_twofa; ?></br></p>
8484
<p><?php echo __('Please scan the code below in your 2FA application:'); ?></p>

web/templates/user/edit_user.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</tr>
7979
<tr>
8080
<td>
81-
<label><input type="checkbox" class="vst-checkbox password-option" name="v_twofa" <?php if(!empty($v_twofa)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_twofa(this)"> <?php print __('Enable 2FA');?></label>
81+
<label><input type="checkbox" class="vst-checkbox password-option" name="v_twofa" <?php if(!empty($v_twofa)) echo "checked=yes" ?>> <?php print __('Enable 2FA');?></label>
8282
<?php if (!empty($v_twofa)) { ?>
8383
<p><?php echo __('2FA Reset Code:').' '.$v_twofa; ?></br></p>
8484
<p><?php echo __('Please scan the code below in your 2FA application:'); ?></p>

0 commit comments

Comments
 (0)