mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
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:
@@ -56,7 +56,7 @@ angular.module('guacDuo').controller('duoSignedResponseController', ['$scope',
|
||||
});
|
||||
|
||||
// Submit updated credentials
|
||||
$(iframe).parents('form').submit();
|
||||
$('.duo-signature-response-field input[type="submit"]').click();
|
||||
|
||||
};
|
||||
|
||||
|
@@ -17,6 +17,10 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
.duo-signature-response-field input[type="submit"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.duo-signature-response-field iframe {
|
||||
width: 100%;
|
||||
max-width: 620px;
|
||||
|
@@ -1,3 +1,4 @@
|
||||
<div class="duo-signature-response-field" ng-class="{ loading : !duoInterfaceLoaded }">
|
||||
<iframe></iframe>
|
||||
<input type="submit">
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user