mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Make submit in ChangePasswordView work again (#11227)
This commit is contained in:
committed by
GitHub
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();
|
||||
|
||||
Reference in New Issue
Block a user