mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-19 19:14:51 +00:00
Fix mismatch between user/targetedUser in force verify endpoint
This commit is contained in:
parent
3546f60f4f
commit
e89a4c27fa
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ public class AdminUserController : ControllerBase
|
|||
|
||||
UserEntity? targetedUser = await this.database.Users.FirstOrDefaultAsync(u => u.UserId == id);
|
||||
if (targetedUser == null) return this.NotFound();
|
||||
if (user.EmailAddress == null || user.EmailAddressVerified) return this.NotFound();
|
||||
if (targetedUser.EmailAddress == null || targetedUser.EmailAddressVerified) return this.NotFound();
|
||||
|
||||
List<EmailVerificationTokenEntity> tokens = await this.database.EmailVerificationTokens
|
||||
.Where(t => t.UserId == targetedUser.UserId)
|
||||
|
|
Loading…
Add table
Reference in a new issue