mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-07-02 15:20:37 +02:00
patch: do not block response if user password check failed
This commit is contained in:
parent
60fc5f715a
commit
273d824df4
|
@ -59,6 +59,7 @@ function adminEndpoints(app) {
|
|||
}
|
||||
|
||||
const { user: newUser, error } = await User.create(newUserParams);
|
||||
if (!!newUser) {
|
||||
await EventLogs.logEvent(
|
||||
"user_created",
|
||||
{
|
||||
|
@ -67,6 +68,8 @@ function adminEndpoints(app) {
|
|||
},
|
||||
currUser.id
|
||||
);
|
||||
}
|
||||
|
||||
response.status(200).json({ user: newUser, error });
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user