mirror of
https://git.unistra.fr/aius/root/ldap-overleaf-sl.git
synced 2025-05-04 19:55:26 +02:00
changed variable "user1" to "user"
I used "user1", because Im not sure about the scope inside the anonymous callback functions
This commit is contained in:
parent
a107b6444c
commit
a382fbc194
1 changed files with 3 additions and 3 deletions
|
@ -186,7 +186,7 @@ const AuthenticationManager = {
|
||||||
|
|
||||||
createIfNotExistAndLogin(
|
createIfNotExistAndLogin(
|
||||||
query,
|
query,
|
||||||
user1,
|
user,
|
||||||
callback,
|
callback,
|
||||||
uid,
|
uid,
|
||||||
firstname,
|
firstname,
|
||||||
|
@ -194,7 +194,7 @@ const AuthenticationManager = {
|
||||||
mail,
|
mail,
|
||||||
isAdmin
|
isAdmin
|
||||||
) {
|
) {
|
||||||
if (!user1) {
|
if (!user) {
|
||||||
//console.log('Creating User:' + JSON.stringify(query))
|
//console.log('Creating User:' + JSON.stringify(query))
|
||||||
//create random pass for local userdb, does not get checked for ldap users during login
|
//create random pass for local userdb, does not get checked for ldap users during login
|
||||||
let pass = require("crypto").randomBytes(32).toString("hex")
|
let pass = require("crypto").randomBytes(32).toString("hex")
|
||||||
|
@ -228,7 +228,7 @@ const AuthenticationManager = {
|
||||||
}
|
}
|
||||||
) // end register user
|
) // end register user
|
||||||
} else {
|
} else {
|
||||||
AuthenticationManager.login(user1, "randomPass", callback)
|
AuthenticationManager.login(user, "randomPass", callback)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue