SciPhi-AI / R2R

The most advanced Retrieval-Augmented Generation (RAG) system, containerized and RESTful
https://r2r-docs.sciphi.ai/
MIT License
3.65k stars 270 forks source link

expose reset data to admin #1602

Closed emrgnt-cmplxty closed 6 hours ago

emrgnt-cmplxty commented 6 hours ago

[!IMPORTANT] Add endpoint and service method to expose user reset tokens to superusers, with related refactoring and renaming for consistency.

  • Behavior:
    • Add get_user_reset_token endpoint in auth_router.py for superusers to retrieve reset tokens.
    • Add get_user_reset_token method in auth_service.py to support the new endpoint.
    • Add get_user_reset_token method in AuthMixins in auth.py.
  • Models:
    • Add ResetDataResult and WrappedResetDataResult in responses.py.
  • Renames:
    • Rename get_user_verification_data to get_user_validation_data in database.py, auth_service.py, and user.py.
    • Rename get_user_verification_code to get_user_reset_token in auth_service.py.
  • Misc:
    • Minor logging changes in triples_extraction.py.

This description was created by Ellipsis for 5028a452cd8830474049882b61bbe256a03b45ea. It will automatically update as commits are pushed.