Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Do not mark the password field as required
An empty password can be sent to remove the current password of the
room, which does not match with the "required" semantics. Moreover, the
CSS styles show a red border in invalid input fields, so the red border
was shown too when removing the password despite being a valid
operation.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
  • Loading branch information
danxuliu committed Aug 27, 2019
commit bb1ad01cec4da74aa5838b92b73926ca861178b6
2 changes: 1 addition & 1 deletion js/views/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ templates['callinfoview'] = template({"1":function(container,depth0,helpers,part
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasPassword : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(10, data, 0),"data":data})) != null ? stack1 : "")
+ "\"></span>\n <div class=\"popovermenu password-menu menu-right\">\n <ul>\n <li>\n <span class=\"menuitem "
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.hasPassword : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(10, data, 0),"data":data})) != null ? stack1 : "")
+ " password-option\">\n <form class=\"password-form\">\n <input class=\"password-input\" required maxlength=\"200\" type=\"password\"\n placeholder=\""
+ " password-option\">\n <form class=\"password-form\">\n <input class=\"password-input\" maxlength=\"200\" type=\"password\"\n placeholder=\""
+ container.escapeExpression(((helper = (helper = helpers.passwordInputPlaceholder || (depth0 != null ? depth0.passwordInputPlaceholder : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"passwordInputPlaceholder","hash":{},"data":data}) : helper)))
+ "\">\n <input type=\"submit\" value=\"\" autocomplete=\"new-password\" class=\"icon icon-confirm password-confirm\"></input>\n <span class=\"icon icon-loading-small password-loading hidden\"/>\n </form>\n </span>\n </li>\n </ul>\n </div>\n </div>\n";
},"8":function(container,depth0,helpers,partials,data) {
Expand Down
2 changes: 1 addition & 1 deletion js/views/templates/callinfoview.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li>
<span class="menuitem {{#if hasPassword}}icon-password{{else}}icon-no-password{{/if}} password-option">
<form class="password-form">
<input class="password-input" required maxlength="200" type="password"
<input class="password-input" maxlength="200" type="password"
placeholder="{{passwordInputPlaceholder}}">
<input type="submit" value="" autocomplete="new-password" class="icon icon-confirm password-confirm"></input>
<span class="icon icon-loading-small password-loading hidden"/>
Expand Down