mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-10 09:58:08 +08:00
fixed authEvent
This commit is contained in:
parent
b8b52248c2
commit
65657848b0
1 changed files with 1 additions and 2 deletions
|
@ -674,11 +674,10 @@ class UserHandler {
|
||||||
|
|
||||||
meta.result = 'success';
|
meta.result = 'success';
|
||||||
|
|
||||||
this.logAuthEvent(userData._id, meta, (err, r) => {
|
this.logAuthEvent(userData._id, meta, (err, authEvent) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
// don't really care
|
// don't really care
|
||||||
}
|
}
|
||||||
let authEvent = r && r.insertedId;
|
|
||||||
this.users.collection('asps').findOneAndUpdate(
|
this.users.collection('asps').findOneAndUpdate(
|
||||||
{
|
{
|
||||||
_id: asp._id
|
_id: asp._id
|
||||||
|
|
Loading…
Reference in a new issue