Merge pull request #26 from AnonymousDotNet/lida_dev

fix: Update to activated status after successfully forgetting password
This commit is contained in:
Haiping 2024-10-16 23:25:33 -05:00 committed by GitHub
commit ef10d81578
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,8 @@ public partial class MongoRepository
{
var filter = Builders<UserDocument>.Filter.Eq(x => x.Id, userId);
var update = Builders<UserDocument>.Update.Set(x => x.Password, password)
.Set(x => x.UpdatedTime, DateTime.UtcNow);
.Set(x => x.UpdatedTime, DateTime.UtcNow)
.Set(x => x.Verified, true);
_dc.Users.UpdateOne(filter, update);
}