set_user_field

Function set_user_field 

Source
pub async fn set_user_field(
    user_id: i32,
    field: &str,
    value: &str,
) -> HttpResponse
Expand description

Set a user field in the database.

This function updates a specific field in the users table for a given user ID.

§Arguments

  • user_id: The ID of the user to update the field for.
  • field: The name of the field to update.
  • value: The new value to set for the field.

§Returns

An HttpResponse indicating the success or failure of the operation.