Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vouching system for new users #60

Open
efonsecab opened this issue May 20, 2024 · 0 comments
Open

Add Vouching system for new users #60

efonsecab opened this issue May 20, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@efonsecab
Copy link
Contributor

efonsecab commented May 20, 2024

As part of the efforts to protect users, one of the feature we will add is a Vouching system, here is how it will work.
Users will not be able to create a new account unless they have been vouched by someone who already has an account, then, a system administrator will review the vouching details and decide if the person should be allowed to join.
If new users break the platform rules, EVERYONE in the vouching chain/hierarchy, will have the account banned, this makes it so that users only vouch for persons with good intentions.

  • Move the "ApplicationUserVouch" table to the "dbo" folder, make it sure to change the script schema to "dbo" to, it currently is under "FairPlayDating"
  • Under the "dbo" folder, create the table "UserInvitation" with the following columns:
    • UserInvitationId
    • InvitingApplicationUserId
    • InvitedUserEmail
    • VouchingReason
    • RowCreationDateTime
    • RowCreationUser
    • SourceApplication
    • OriginatorIPAddress

Include a unique index for "InvitedUserEmail"

In the Admin Portal:

  • Create a new prompt constant for "AnalyzeVouchingReason".
  • Add the new prompt in the PrompEditor page

In the FairPlayDating web app

  • Add a new item "Invite User" to the main menu.
  • Create the respective models and services using the patterns for the AutoGenerated services code: Check of the usage of ServiceOfTAttribute.
  • Include an EditForm with fields for "InvitedUserEmail" and "VouchingReason", both must be required. Reason must be a minimum of 100 characters, and maximum of 1000 characters.
  • Use OpenAIService and PormptGeneratorService approach to evaluate if the provided reason makes sense, or if the users is just writing invalid / phrases that make no sense or cannot be understood.
  • If the provided reason makes sense and email is valid, then create the UserInvitation, and send an email to the users, with a new unique code.
@efonsecab efonsecab added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels May 20, 2024
@efonsecab efonsecab added this to the Release 1.0 milestone May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant