mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 13:18:49 +01:00
finish prepare for test
This commit is contained in:
parent
f23448be33
commit
745bd7e806
1 changed files with 8 additions and 3 deletions
|
|
@ -6,11 +6,11 @@ const i18nTagToT9n = (i18nTag) => {
|
||||||
return i18nTag;
|
return i18nTag;
|
||||||
};
|
};
|
||||||
|
|
||||||
Template.userFormsLayout.onCreated(() => {
|
Template.userFormsLayout.onCreated(function() {
|
||||||
Meteor.subscribe('setting');
|
|
||||||
Meteor.call('getDefaultAuthenticationMethod', (error, result) => {
|
Meteor.call('getDefaultAuthenticationMethod', (error, result) => {
|
||||||
this.data.defaultAuthenticationMethod = new ReactiveVar(error ? undefined : result);
|
this.data.defaultAuthenticationMethod = new ReactiveVar(error ? undefined : result);
|
||||||
});
|
});
|
||||||
|
Meteor.subscribe('setting');
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.userFormsLayout.onRendered(() => {
|
Template.userFormsLayout.onRendered(() => {
|
||||||
|
|
@ -83,7 +83,7 @@ Template.userFormsLayout.events({
|
||||||
const email = $('#at-field-username_and_email').val();
|
const email = $('#at-field-username_and_email').val();
|
||||||
const password = $('#at-field-password').val();
|
const password = $('#at-field-password').val();
|
||||||
|
|
||||||
if (FlowRouter.getRouteName() !== 'atSignIn' || password === '') {
|
if (FlowRouter.getRouteName() !== 'atSignIn' || password === '' || email === '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -132,5 +132,10 @@ function authentication(instance, email, password) {
|
||||||
return error;
|
return error;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* else {
|
||||||
|
process.env.DEFAULT_AUTHENTICATION_METHOD is not defined
|
||||||
|
} */
|
||||||
|
|
||||||
return this.stop();
|
return this.stop();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue