mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
fix lints
This commit is contained in:
parent
8b3601248d
commit
259ff3436f
1 changed files with 3 additions and 3 deletions
|
|
@ -113,11 +113,11 @@ async function authentication(event, instance) {
|
||||||
const match = $('#at-field-username_and_email').val();
|
const match = $('#at-field-username_and_email').val();
|
||||||
const password = $('#at-field-password').val();
|
const password = $('#at-field-password').val();
|
||||||
|
|
||||||
if (!match || !password) return;
|
if (!match || !password) return undefined;
|
||||||
|
|
||||||
const result = await getAuthenticationMethod(instance.currentSetting.get(), match);
|
const result = await getAuthenticationMethod(instance.currentSetting.get(), match);
|
||||||
|
|
||||||
if (result === 'password') return;
|
if (result === 'password') return undefined;
|
||||||
|
|
||||||
// Stop submit #at-pwd-form
|
// Stop submit #at-pwd-form
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
@ -139,7 +139,7 @@ async function authentication(event, instance) {
|
||||||
});
|
});
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue