mirror of
https://github.com/bitwarden/browser
synced 2026-01-21 03:43:41 +00:00
fixes for duo login on safari
This commit is contained in:
@@ -22,18 +22,18 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
host: msg.data.host,
|
||||
sig_request: msg.data.signature,
|
||||
submit_callback: (theForm: Document) => {
|
||||
const sigElement = theForm.querySelector('input[name="sig_response"]');
|
||||
const sigElement = theForm.querySelector('input[name="sig_response"]') as HTMLInputElement;
|
||||
if (sigElement) {
|
||||
safari.self.tab.dispatchMessage('bitwarden', {
|
||||
command: '2faPageResponse',
|
||||
type: 'duo',
|
||||
data: {
|
||||
sigValue: sigElement.nodeValue,
|
||||
sigValue: sigElement.value,
|
||||
},
|
||||
});
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
} else {
|
||||
// TODO: others like u2f?
|
||||
|
||||
Reference in New Issue
Block a user