BULSU-Planning-and-Development / Pmes

MIT License
0 stars 0 forks source link

Implement User Verification in Chatbot Using allowed_users.json #34

Closed davesalvador closed 4 days ago

davesalvador commented 4 days ago

The chatbot should include functionality to verify if a user is authorized to interact with it by checking if the user exists in the allowed_users.json file. If the user is found in the file, the chatbot should allow further interaction; otherwise, the chatbot should deny access and provide a message indicating the user is unauthorized.

Load the allowed_users.json file containing the list of authorized users. Implement a function that verifies the user's identity by checking if their details (e.g., email or username) are listed in the allowed_users.json file. Add a condition in the chatbot logic to only proceed with further operations if the user is verified. If the user is not listed in the allowed_users.json file:

Ensure the verification logic is efficient and secure. Test the chatbot with multiple user scenarios to confirm proper verification.