Merge pull request #2066 from thelounge/xpaw/fix-509

Display password field when displayNetwork is false
This commit is contained in:
Pavel Djundik 2018-02-17 10:37:04 +02:00 committed by GitHub
commit c0442e4c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -37,12 +37,6 @@
</div>
</div>
<div class="clearfix"></div>
<div class="col-sm-3">
<label for="connect:password">Password</label>
</div>
<div class="col-sm-9">
<input class="input" id="connect:password" type="password" name="password" value="{{defaults.password}}">
</div>
<div class="col-sm-9 col-sm-offset-3">
<label class="tls">
<input type="checkbox" name="tls" {{#if defaults.tls}}checked{{/if}} {{#if lockNetwork}}disabled{{/if}}>
@ -69,6 +63,12 @@
<input class="input username" id="connect:username" name="username" value="{{defaults.username}}">
</div>
{{/unless}}
<div class="col-sm-3">
<label for="connect:password">Password</label>
</div>
<div class="col-sm-9">
<input class="input" id="connect:password" type="password" name="password" value="{{defaults.password}}">
</div>
<div class="col-sm-3">
<label for="connect:realname">Real name</label>
</div>

View File

@ -513,6 +513,7 @@ function getClientConfiguration() {
config.defaults = _.pick(Helper.config.defaults, [
"nick",
"username",
"password",
"realname",
"join",
]);