Skip to content

Feat/users crud

Tsai requested to merge feat/users-crud into main

Created by: joan0802

Overview

This PR adds account activation functionality to the user management system and implements comprehensive type safety improvements throughout the authentication flow. In addition, "activate" and "isAdmin" related APIs have been added.

Key Changes

  • Added activate boolean field to User models with default value of True
  • Implemented account activation check in authentication process
  • Replaced generic Dict[str, Any] with strongly-typed UserDict TypedDict
  • Created APIs for admin to deactivate and give admin to users, while admin can't modify "activate" and "isAdmin" of itself

Merge request reports