GUACAMOLE-136: Use hidden submit button for submitting Duo response (form.submit() inserts query parameters and causes browser navigation, despite ngSubmit preventing default).

This commit is contained in:
Michael Jumper
2016-12-01 21:33:28 -08:00
parent 48af3ef45d
commit 548966ae5a
3 changed files with 6 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ angular.module('guacDuo').controller('duoSignedResponseController', ['$scope',
}); });
// Submit updated credentials // Submit updated credentials
$(iframe).parents('form').submit(); $('.duo-signature-response-field input[type="submit"]').click();
}; };

View File

@@ -17,6 +17,10 @@
* under the License. * under the License.
*/ */
.duo-signature-response-field input[type="submit"] {
display: none !important;
}
.duo-signature-response-field iframe { .duo-signature-response-field iframe {
width: 100%; width: 100%;
max-width: 620px; max-width: 620px;

View File

@@ -1,3 +1,4 @@
<div class="duo-signature-response-field" ng-class="{ loading : !duoInterfaceLoaded }"> <div class="duo-signature-response-field" ng-class="{ loading : !duoInterfaceLoaded }">
<iframe></iframe> <iframe></iframe>
<input type="submit">
</div> </div>