mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Fix lint errors.
This commit is contained in:
parent
cb4a679050
commit
f7a1c4896b
1 changed files with 3 additions and 3 deletions
|
|
@ -440,7 +440,7 @@ if (Meteor.isServer) {
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.from == 'admin') {
|
if (options.from === 'admin') {
|
||||||
user.fromAdmin = true;
|
user.fromAdmin = true;
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
@ -535,7 +535,7 @@ if (Meteor.isServer) {
|
||||||
Users.after.insert((userId, doc) => {
|
Users.after.insert((userId, doc) => {
|
||||||
|
|
||||||
if (doc.fromAdmin)
|
if (doc.fromAdmin)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//invite user to corresponding boards
|
//invite user to corresponding boards
|
||||||
const disableRegistration = Settings.findOne().disableRegistration;
|
const disableRegistration = Settings.findOne().disableRegistration;
|
||||||
|
|
@ -595,7 +595,7 @@ if (Meteor.isServer) {
|
||||||
username: req.body.username,
|
username: req.body.username,
|
||||||
email: req.body.email,
|
email: req.body.email,
|
||||||
password: 'default',
|
password: 'default',
|
||||||
from: 'admin'
|
from: 'admin',
|
||||||
});
|
});
|
||||||
|
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue