)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1736,"name":"Ivan Kolodyazhny","email":"e0ne@e0ne.info","username":"e0ne"},"change_message_id":"f698f485bd6d350787d99bae3d9f1b134fadbf15","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WEBSSO should not require username/password"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"As federated login does not use any of the textboxes in the login screen, these should not be marked as required when anything but \u0027credentials\u0027 is selected."},{"line_number":10,"context_line":"This solution uses ng-if to remove the username/password fields from the DOM when federation is selected. This requires a few workarounds because of the way forms are set up."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"A positive side effect of this commit is that it also fixes a small bug where submit button\u0027s label \u0027Connect\u0027 and \u0027Sign In\u0027 would not toggle when using federation."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5f2577a7_b202366e","line":9,"updated":"2017-09-14 16:36:33.000000000","message":"Please, change commit message according to the guidelines [1].\n\n[1] https://wiki.openstack.org/wiki/GitCommitMessages","commit_id":"e5000e5e185168b4a3f6b2b6abbd33dd0c743218"}],"horizon/static/auth/login/login-finder.directive.js":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"ed9a95ff88755f042aa0b96a32a1225ba169e176","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                regionInput.show();"},{"line_number":73,"context_line":"                break;"},{"line_number":74,"context_line":"              default:"},{"line_number":75,"context_line":"                $(\u0027input\u0027).prop(\u0027required\u0027, false);"},{"line_number":76,"context_line":"                userInput.hide();"},{"line_number":77,"context_line":"                passwordInput.hide();"},{"line_number":78,"context_line":"                domainInput.hide();"}],"source_content_type":"text/javascript","patch_set":1,"id":"9f436f4f_4c888e1e","line":75,"updated":"2017-08-08 10:49:09.000000000","message":"Couldn\u0027t you just use an ng-if in the template like your original statement suggested? I\u0027d prefer it to having DOM logic here. Seems a little clunky.","commit_id":"056f17de28661804bf13b2e4122e45c4963e101b"},{"author":{"_account_id":26612,"name":"Jouke","email":"jouker@nikhef.nl","username":"jouker"},"change_message_id":"22c1fc45256bf80dfdbdcd349e0ac19f7dd8e84f","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                regionInput.show();"},{"line_number":73,"context_line":"                break;"},{"line_number":74,"context_line":"              default:"},{"line_number":75,"context_line":"                $(\u0027input\u0027).prop(\u0027required\u0027, false);"},{"line_number":76,"context_line":"                userInput.hide();"},{"line_number":77,"context_line":"                passwordInput.hide();"},{"line_number":78,"context_line":"                domainInput.hide();"}],"source_content_type":"text/javascript","patch_set":1,"id":"9f436f4f_e753dde1","line":75,"in_reply_to":"9f436f4f_4c888e1e","updated":"2017-08-08 11:21:47.000000000","message":"While I agree with you that this solution feels a little off, the issue with the ng-if is that either the authentication source select will also disappear, or the django form should be altered, because currently the login form just includes horizon/common/_form_fields.html (horizon/templates/auth/_login_form.html#L65)\nIt might be possible to move the selector out of the form fields into a separate field, but that results in unnecessary code duplication in my opinion.\n\nI have chosen this approach because it is, as far as I can see, the one that is least polluting for common code.\n\nAs mentioned before, ng-required might also be a good option in theory, but this would require adding a form guard to check if there are no ng-required errors.","commit_id":"056f17de28661804bf13b2e4122e45c4963e101b"}],"horizon/static/auth/login/login.regular.mock.html":[{"author":{"_account_id":16628,"name":"Beth Elwell","email":"e.r.elwell@gmail.com","username":"bethelwell"},"change_message_id":"3ce4e3916ef5c4c84432ea4276fbc0f0888fb9c3","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  \u003cfieldset hz-login-finder\u003e"},{"line_number":4,"context_line":"    \u003cdiv ng-if\u003d\"auth_type\u003d\u003d\u003d\u0027credentials\u0027\"\u003e"},{"line_number":5,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_username\"\u003e\u003c/div\u003e"},{"line_number":6,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_password\"\u003e\u003c/div\u003e"},{"line_number":7,"context_line":"    \u003c/div\u003e"},{"line_number":8,"context_line":"  \u003c/fieldset\u003e"},{"line_number":9,"context_line":"\u003c/form\u003e"}],"source_content_type":"text/html","patch_set":3,"id":"5f2577a7_d5ec8790","line":6,"updated":"2017-09-14 20:02:21.000000000","message":"nit: close input tags \u003c/\u003e","commit_id":"e5000e5e185168b4a3f6b2b6abbd33dd0c743218"},{"author":{"_account_id":26612,"name":"Jouke","email":"jouker@nikhef.nl","username":"jouker"},"change_message_id":"946a2a84bca5c2c1abc5619f281e3e65c47811d2","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  \u003cfieldset hz-login-finder\u003e"},{"line_number":4,"context_line":"    \u003cdiv ng-if\u003d\"auth_type\u003d\u003d\u003d\u0027credentials\u0027\"\u003e"},{"line_number":5,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_username\"\u003e\u003c/div\u003e"},{"line_number":6,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_password\"\u003e\u003c/div\u003e"},{"line_number":7,"context_line":"    \u003c/div\u003e"},{"line_number":8,"context_line":"  \u003c/fieldset\u003e"},{"line_number":9,"context_line":"\u003c/form\u003e"}],"source_content_type":"text/html","patch_set":3,"id":"5f2577a7_4ed48148","line":6,"in_reply_to":"5f2577a7_d5ec8790","updated":"2017-09-14 21:42:54.000000000","message":"HTML5 input tags don\u0027t have end tags (https://www.w3.org/TR/html5/forms.html#the-input-element)","commit_id":"e5000e5e185168b4a3f6b2b6abbd33dd0c743218"}],"horizon/static/auth/login/login.websso.mock.html":[{"author":{"_account_id":16628,"name":"Beth Elwell","email":"e.r.elwell@gmail.com","username":"bethelwell"},"change_message_id":"3ce4e3916ef5c4c84432ea4276fbc0f0888fb9c3","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    \u003c/div\u003e"},{"line_number":10,"context_line":"    \u003cdiv ng-if\u003d\"auth_type\u003d\u003d\u003d\u0027credentials\u0027\"\u003e"},{"line_number":11,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_username\"\u003e\u003c/div\u003e"},{"line_number":12,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_password\"\u003e\u003c/div\u003e"},{"line_number":13,"context_line":"    \u003c/div\u003e"},{"line_number":14,"context_line":"  \u003c/fieldset\u003e"},{"line_number":15,"context_line":"\u003c/form\u003e"}],"source_content_type":"text/html","patch_set":3,"id":"5f2577a7_35974bef","line":12,"updated":"2017-09-14 20:02:21.000000000","message":"nit: close input tags \u003c/\u003e","commit_id":"e5000e5e185168b4a3f6b2b6abbd33dd0c743218"},{"author":{"_account_id":26612,"name":"Jouke","email":"jouker@nikhef.nl","username":"jouker"},"change_message_id":"946a2a84bca5c2c1abc5619f281e3e65c47811d2","unresolved":false,"context_lines":[{"line_number":9,"context_line":"    \u003c/div\u003e"},{"line_number":10,"context_line":"    \u003cdiv ng-if\u003d\"auth_type\u003d\u003d\u003d\u0027credentials\u0027\"\u003e"},{"line_number":11,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_username\"\u003e\u003c/div\u003e"},{"line_number":12,"context_line":"      \u003cdiv class\u003d\"form-group\"\u003e\u003cinput id\u003d\"id_password\"\u003e\u003c/div\u003e"},{"line_number":13,"context_line":"    \u003c/div\u003e"},{"line_number":14,"context_line":"  \u003c/fieldset\u003e"},{"line_number":15,"context_line":"\u003c/form\u003e"}],"source_content_type":"text/html","patch_set":3,"id":"5f2577a7_0ea9d98e","line":12,"in_reply_to":"5f2577a7_35974bef","updated":"2017-09-14 21:42:54.000000000","message":"HTML5 input tags don\u0027t have end tags (https://www.w3.org/TR/html5/forms.html#the-input-element)","commit_id":"e5000e5e185168b4a3f6b2b6abbd33dd0c743218"}]}
