Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9336
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Aug 15, 2024
1 parent 935bfb7 commit dd3c332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4067,11 +4067,15 @@ function html2plainText($html)
return $text;
}

function getInputPassword($id, $attributes = 'class="form-control"', $placeholder = '')
function getInputPassword($id, $attributes = 'class="form-control"', $placeholder = '', $autofill = true)
{
if (empty($placeholder)) {
$placeholder = __("Password");
}
if(!$autofill){
$attributes .= ' autocomplete="new-password" autofill="off" ';
echo '<input type="password" name="fakepassword" id="fakepassword" style="display:none;">';
}
?>
<div class="input-group">
<span class="input-group-addon"><i class="fas fa-lock"></i></span>
Expand Down
2 changes: 1 addition & 1 deletion plugin/Live/tabs/tabStreamSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<div class="form-group">
<label for="title"><?php echo __("Password Protect"); ?>:</label>
<?php
echo getInputPassword('password_livestream', 'class="form-control" autocomplete="off" autofill="off" value="' . $trasnmition['password'] . '"', __("Password Protect"));
echo getInputPassword('password_livestream', 'class="form-control" value="' . $trasnmition['password'] . '"', __("Password Protect"), false);
?>
</div>
<?php
Expand Down

0 comments on commit dd3c332

Please sign in to comment.