Skip to content

Commit

Permalink
🐛 fixed automatic user creation through LDAP
Browse files Browse the repository at this point in the history
⬆️ updated package dependencies
  • Loading branch information
faburem committed Oct 4, 2024
1 parent ef42f4e commit 5832a51
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected].1
[email protected].2
[email protected]
[email protected]
[email protected]
Expand Down
4 changes: 2 additions & 2 deletions imports/utils/ldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,8 @@ async function addLdapUser(ldapUser, username, password) {
try {
// This creates the account with password service
userObject.ldap = true
userObject._id = Accounts.createUser(userObject)

userObject._id = await Accounts.createUserAsync(userObject)
logDebug('New user created through LDAP login: ', userObject._id)
// Add the services.ldap identifiers
await Meteor.users.updateAsync({ _id: userObject._id }, {
$set: {
Expand Down
35 changes: 20 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "titra",
"version": "0.99.15",
"version": "0.99.16",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"@babel/runtime": "^7.25.6",
"@babel/runtime": "^7.25.7",
"@dashboardcode/bsmultiselect": "^1.1.18",
"@fortawesome/fontawesome-free": "^6.6.0",
"@fullcalendar/core": "6.1.15",
Expand Down Expand Up @@ -48,7 +48,7 @@
"eslint-config-airbnb": "^19.0.4",
"eslint-import-resolver-meteor": "^0.4.0",
"eslint-plugin-i18next": "^6.1.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-meteor": "^7.3.0"
},
"apidoc": {
Expand Down

0 comments on commit 5832a51

Please sign in to comment.