Add login/logout logs

This commit is contained in:
Tuan Dang
2023-02-01 11:56:38 +07:00
parent 55522404b4
commit ca688764a3
15 changed files with 297 additions and 90 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ export interface IUser {
salt?: string;
verifier?: string;
refreshVersion?: number;
seenIps: [string];
}
const userSchema = new Schema<IUser>(
@@ -54,7 +55,8 @@ const userSchema = new Schema<IUser>(
type: Number,
default: 0,
select: false
}
},
seenIps: [String]
},
{
timestamps: true