Merge pull request #687 from Charlo270398/development-LDAPfirstLogin
LDAP - Users not created on the fly upon first login fixed #683 (good one)
This commit is contained in:
commit
af2e988ae7
2 changed files with 9 additions and 5 deletions
|
@ -258,7 +258,11 @@ async function getByAccessToken(accessToken) {
|
|||
}
|
||||
|
||||
async function getByUsername(username) {
|
||||
return await _getBy(contextHelpers.getAdminContext(), 'username', username);
|
||||
try{
|
||||
return await _getBy(contextHelpers.getAdminContext(), 'username', username);
|
||||
}catch(err){
|
||||
throw new interoperableErrors.NotFoundError();
|
||||
}
|
||||
}
|
||||
|
||||
async function getByUsernameIfPasswordMatch(context, username, password) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue