mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(editor): Make submit in ChangePasswordView work again (#11227)
Some checks failed
Test Master / install-and-build (push) Has been cancelled
Test Master / Unit tests (18.x) (push) Has been cancelled
Test Master / Unit tests (20.x) (push) Has been cancelled
Test Master / Unit tests (22.4) (push) Has been cancelled
Test Master / Lint (push) Has been cancelled
Test Master / Notify Slack on failure (push) Has been cancelled
Some checks failed
Test Master / install-and-build (push) Has been cancelled
Test Master / Unit tests (18.x) (push) Has been cancelled
Test Master / Unit tests (20.x) (push) Has been cancelled
Test Master / Unit tests (22.4) (push) Has been cancelled
Test Master / Lint (push) Has been cancelled
Test Master / Notify Slack on failure (push) Has been cancelled
This commit is contained in:
parent
0d23a7fb5b
commit
4f27b39b45
|
@ -47,12 +47,7 @@ const getMfaEnabled = () => {
|
|||
return router.currentRoute.value.query.mfaEnabled === 'true' ? true : false;
|
||||
};
|
||||
|
||||
const isFormWithMFAToken = (values: { [key: string]: string }): values is { mfaToken: string } => {
|
||||
return 'mfaToken' in values;
|
||||
};
|
||||
|
||||
const onSubmit = async (values: { [key: string]: string }) => {
|
||||
if (!isFormWithMFAToken(values)) return;
|
||||
try {
|
||||
loading.value = true;
|
||||
const token = getResetToken();
|
||||
|
|
Loading…
Reference in a new issue