update/update-auth-checks
This commit is contained in:
1 parent
e7b7e9394f
commit
92ff358e3a
1 file changed
+3
-3
@@ -375,8 +375,8 @@ func StudentLogin(c *fiber.Ctx) error {
|
||||
update_time, _ := time.Parse(time.RFC3339, time.Now().Format(time.RFC3339))
|
||||
update := bson.M{
|
||||
"$set": bson.M{
|
||||
"accountdisabled": true,
|
||||
"attempts": 0,
|
||||
"AccountData.accountdisabled": true,
|
||||
"AccountData.attempts": 0,
|
||||
"updated_at": update_time,
|
||||
},
|
||||
}
|
||||
@@ -409,7 +409,7 @@ func StudentLogin(c *fiber.Ctx) error {
|
||||
update_time, _ := time.Parse(time.RFC3339, time.Now().Format(time.RFC3339))
|
||||
update := bson.M{
|
||||
"$set": bson.M{
|
||||
"attempts": student.AccountData.Attempts + 1,
|
||||
"AccountData.attempts": student.AccountData.Attempts + 1,
|
||||
"updated_at": update_time,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user