Merge pull request #23336 from nextcloud/backport/23239/stable20
[stable20] Fix database password visibility toggle
This commit is contained in:
commit
5994f66659
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,8 @@ import { translate as t } from '@nextcloud/l10n'
|
|||
import { getToken } from './OC/requesttoken'
|
||||
import getURLParameter from './Util/get-url-parameter'
|
||||
|
||||
import './jquery/showpassword'
|
||||
|
||||
import 'jquery-ui/ui/widgets/button'
|
||||
import 'jquery-ui/themes/base/theme.css'
|
||||
import 'jquery-ui/themes/base/button.css'
|
||||
|
@ -134,4 +136,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
|||
drawTitles: true,
|
||||
nonce: btoa(getToken()),
|
||||
})
|
||||
|
||||
$('#dbpass').showPassword().keyup()
|
||||
$('#adminpass').showPassword().keyup()
|
||||
})
|
||||
|
|
|
@ -49,8 +49,8 @@ script('core', [
|
|||
value="<?php p($_['adminpass']); ?>"
|
||||
autocomplete="off" autocapitalize="none" autocorrect="off" required>
|
||||
<label for="adminpass" class="infield"><?php p($l->t('Password')); ?></label>
|
||||
<input type="checkbox" id="show" class="hidden-visually" name="show">
|
||||
<label for="show" class="hidden-visually"><?php p($l->t('Show password')); ?></label>
|
||||
<input type="checkbox" id="show" class="hidden-visually" name="show" aria-label="<?php p($l->t('Show password')); ?>">
|
||||
<label for="show"></label>
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
|
@ -115,7 +115,7 @@ script('core', [
|
|||
value="<?php p($_['dbpass']); ?>"
|
||||
autocomplete="off" autocapitalize="none" autocorrect="off">
|
||||
<label for="dbpass" class="infield"><?php p($l->t('Database password')); ?></label>
|
||||
<input type="checkbox" id="dbpassword-toggle" class="hidden-visually" name="dbpassword-toggle">
|
||||
<input type="checkbox" id="dbpassword-toggle" class="hidden-visually" name="dbpassword-toggle" aria-label="<?php p($l->t('Show password')); ?>">
|
||||
<label for="dbpassword-toggle"></label>
|
||||
</p>
|
||||
<p class="groupmiddle">
|
||||
|
|
Loading…
Reference in New Issue