LDAP first login BUG fixed
This commit is contained in:
parent
3e374db722
commit
6beac55826
2 changed files with 6 additions and 2 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