Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
55 stars 257 forks source link

Update User Properties on Verification #1394

Open RitikJaiswal75 opened 1 year ago

RitikJaiswal75 commented 1 year ago

Issue: Update User Properties on Verification

Description

Currently, when users verify themselves, their account properties are not being appropriately updated in our system. To ensure accurate user management, we need to implement changes that set the "archived" property to false and the "in_discord" property to true for users upon successful verification.

Problem

The current verification process does not update user properties, leading to incorrect information in our user database. This can result in challenges when managing user accounts and interactions.

Proposed Solution

Upon successful verification, we need to:

  1. Set the "archived" property to false for users, indicating that their account is active.
  2. Set the "in_discord" property to true, indicating that the user is verified and present in our Discord community.

Benefits

  1. Accurate User Management: Updating user properties post-verification ensures that our database contains up-to-date and accurate user information.
  2. Enhanced Engagement: Identifying users as "in_discord" allows us to tailor engagement and interactions based on their verified status.
  3. Reduced Confusion: Setting "archived" to false clarifies the user's account status and avoids confusion in account management.

Implementation Steps

  1. Modify the verification process to include property updates upon successful verification.
  2. Update the user's "archived" and "in_discord" properties in the backend system.

Related Components

Acceptance Criteria

Upon user verification:

ankitbajpai65 commented 1 year ago

@iamitprakash Please add 25/08/2023 as ETA. I will try to finish earlier. Dev - 7-8 days, PR review - 3-4 days, and 2 days buffer.