Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename database password toggle
* otherwise submitting the form with the password show will be overwritten
* see https://github.com/nextcloud/server/blob/2c9d7eeb763d2f907eea8234f6c60a829a5d39f7/core/Controller/SetupController.php#L59
* seems to be a legacy fallback
* fixes #3381

Signed-off-by: Morris Jobke <[email protected]>
  • Loading branch information
MorrisJobke committed Feb 15, 2017
commit f59e0ed4ca4d93796c588e7633b058283d886c7b
12 changes: 6 additions & 6 deletions core/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -426,26 +426,26 @@ label.infield {
}

/* Show password toggle */
#show, #dbpassword {
#show, #dbpassword-toggle {
position: absolute;
right: 1em;
top: .8em;
float: right;
}
#show, #dbpassword, #personal-show {
#show, #dbpassword-toggle, #personal-show {
display: none;
}
#show + label, #dbpassword + label {
#show + label, #dbpassword-toggle + label {
right: 21px;
top: 15px !important;
margin: -14px !important;
padding: 14px !important;
}
#show:checked + label, #dbpassword:checked + label, #personal-show:checked + label {
#show:checked + label, #dbpassword-toggle:checked + label, #personal-show:checked + label {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
opacity: .8;
}
#show + label, #dbpassword + label, #personal-show + label {
#show + label, #dbpassword-toggle + label, #personal-show + label {
position: absolute !important;
height: 20px;
width: 24px;
Expand All @@ -455,7 +455,7 @@ label.infield {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
opacity: .3;
}
#show + label:before, #dbpassword + label:before, #personal-show + label:before {
#show + label:before, #dbpassword-toggle + label:before, #personal-show + label:before {
display: none;
}
#pass2, input[name="personal-password-clone"] {
Expand Down
6 changes: 3 additions & 3 deletions core/templates/installation.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@
autocomplete="off" autocapitalize="off" autocorrect="off">
</p>
<p class="groupmiddle">
<input type="password" name="dbpass" id="dbpass" data-typetoggle="#dbpassword"
<input type="password" name="dbpass" id="dbpass" data-typetoggle="#dbpassword-toggle"
placeholder="<?php p($l->t( 'Database password' )); ?>"
value="<?php p($_['dbpass']); ?>"
autocomplete="off" autocapitalize="off" autocorrect="off">
<label for="dbpass" class="infield"><?php p($l->t( 'Database password' )); ?></label>
<input type="checkbox" id="dbpassword" name="dbpassword">
<label for="dbpassword"></label>
<input type="checkbox" id="dbpassword-toggle" name="dbpassword-toggle">
<label for="dbpassword-toggle"></label>
</p>
<p class="groupmiddle">
<label for="dbname" class="infield"><?php p($l->t( 'Database name' )); ?></label>
Expand Down