diff --git a/app/frontend/components/user_details.py b/app/frontend/components/user_details.py index fdd14fca2b9bd229a548801d05f718092df95977..62d97fc6116cec905ad5a0a6c228dab477cde404 100644 --- a/app/frontend/components/user_details.py +++ b/app/frontend/components/user_details.py @@ -166,7 +166,6 @@ def user_details_frame(parent, switch_func, API_URL, token): # Create view mode fields username_view = create_detail_row(view_content, "Username:") - name_view = create_detail_row(view_content, "Name:") email_view = create_detail_row(view_content, "Email:") phone_view = create_detail_row(view_content, "Phone:") @@ -201,7 +200,6 @@ def user_details_frame(parent, switch_func, API_URL, token): return entry username_entry = create_form_field("Username", "Enter your username...") - name_entry = create_form_field("Name", "Enter your name...") email_entry = create_form_field("Email", "Enter your email...") phone_entry = create_form_field("Phone", "Enter your phone number...") @@ -218,9 +216,6 @@ def user_details_frame(parent, switch_func, API_URL, token): username_entry.delete(0, "end") username_entry.insert(0, username_view.cget("text")) - name_entry.delete(0, "end") - name_entry.insert(0, name_view.cget("text")) - email_entry.delete(0, "end") email_entry.insert(0, email_view.cget("text")) email_entry.configure(state="disabled") # Make email field read-only @@ -251,7 +246,6 @@ def user_details_frame(parent, switch_func, API_URL, token): headers = {"Authorization": f"Bearer {frame.token}"} payload = { "username": username_entry.get().strip(), - "name": name_entry.get().strip(), # Backend ignores this field "phone": phone_entry.get().strip(), # Note: backend expects "phone", not "phone_number" # Email is intentionally omitted from the payload to prevent changes } @@ -262,10 +256,6 @@ def user_details_frame(parent, switch_func, API_URL, token): # Update the view labels with new data username_view.configure(text=payload["username"]) - name_view.configure( - text=payload["name"] - ) # This will be updated to match username on next fetch - # Email stays the same phone_view.configure(text=payload["phone"]) # Switch back to view mode @@ -313,9 +303,6 @@ def user_details_frame(parent, switch_func, API_URL, token): # Update view mode displays username_view.configure(text=data.get("username", "")) - name_view.configure( - text=data.get("name", "") - ) # This will be the username email_view.configure(text=data.get("email", "")) phone_view.configure(text=data.get("phone", "")) else: diff --git a/app/static/front_end_img/login.jpg b/app/static/front_end_img/login.jpg deleted file mode 100644 index b8235c6d4067b453380179dda20c7c72e6da8ab5..0000000000000000000000000000000000000000 Binary files a/app/static/front_end_img/login.jpg and /dev/null differ