mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Wait a bit before continuing with the passphrase
The continue button is probably no-oping due to being disabled.
This commit is contained in:
parent
597f97e1d8
commit
2451e0b873
@ -84,12 +84,14 @@ module.exports = async function signup(session, username, password, homeserver)
|
|||||||
const xsigningPassphrase = 'a7eaXcjpa9!Yl7#V^h$B^%dovHUVX'; // https://xkcd.com/221/
|
const xsigningPassphrase = 'a7eaXcjpa9!Yl7#V^h$B^%dovHUVX'; // https://xkcd.com/221/
|
||||||
let passphraseField = await session.query('.mx_CreateSecretStorageDialog_passPhraseField input');
|
let passphraseField = await session.query('.mx_CreateSecretStorageDialog_passPhraseField input');
|
||||||
await session.replaceInputText(passphraseField, xsigningPassphrase);
|
await session.replaceInputText(passphraseField, xsigningPassphrase);
|
||||||
|
await session.delay(1000); // give it a second to analyze our passphrase for security
|
||||||
let xsignContButton = await session.query('.mx_CreateSecretStorageDialog .mx_Dialog_buttons .mx_Dialog_primary');
|
let xsignContButton = await session.query('.mx_CreateSecretStorageDialog .mx_Dialog_buttons .mx_Dialog_primary');
|
||||||
await xsignContButton.click();
|
await xsignContButton.click();
|
||||||
|
|
||||||
//repeat passphrase entry
|
//repeat passphrase entry
|
||||||
passphraseField = await session.query('.mx_CreateSecretStorageDialog_passPhraseField input');
|
passphraseField = await session.query('.mx_CreateSecretStorageDialog_passPhraseField input');
|
||||||
await session.replaceInputText(passphraseField, xsigningPassphrase);
|
await session.replaceInputText(passphraseField, xsigningPassphrase);
|
||||||
|
await session.delay(1000); // give it a second to analyze our passphrase for security
|
||||||
xsignContButton = await session.query('.mx_CreateSecretStorageDialog .mx_Dialog_buttons .mx_Dialog_primary');
|
xsignContButton = await session.query('.mx_CreateSecretStorageDialog .mx_Dialog_buttons .mx_Dialog_primary');
|
||||||
await xsignContButton.click();
|
await xsignContButton.click();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user