[PR #4621] [MERGED] fix: unhelpful error message for invite link user creation #4695

Closed
opened 2026-02-22 18:36:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4621
Author: @nehaaprasad
Created: 11/6/2025
Status: Merged
Merged: 11/19/2025
Merged by: @timothycarambat

Base: masterHead: feat/invite-link


📝 Commits (3)

  • f724421 remove the hardcoded generic message instead of the actual validation error
  • e8273be lint
  • e10ac0f Merge branch 'master' into feat/invite-link

📊 Changes

1 file changed (+1 additions, -3 deletions)

View changed files

📝 server/endpoints/invite.js (+1 -3)

📄 Description

Pull Request Description

Pull Request Type

  • 🐛 fix

Relevant Issues

resolves #4618

What is in this change?

Fixed invite endpoint to show actual username validation error instead of generic "Could not create user" message. Users now see: "Username must only contain lowercase letters, periods, numbers, underscores, and hyphens with no spaces."

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • I have tested my code functionality

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4621 **Author:** [@nehaaprasad](https://github.com/nehaaprasad) **Created:** 11/6/2025 **Status:** ✅ Merged **Merged:** 11/19/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `feat/invite-link` --- ### 📝 Commits (3) - [`f724421`](https://github.com/Mintplex-Labs/anything-llm/commit/f72442132adb01b1ea7bb036a7f7af875210a20f) remove the hardcoded generic message instead of the actual validation error - [`e8273be`](https://github.com/Mintplex-Labs/anything-llm/commit/e8273beb1f2fabecff055c201f8f9df592fd373c) lint - [`e10ac0f`](https://github.com/Mintplex-Labs/anything-llm/commit/e10ac0fbf5e46de78439cc3c0ee9f513459b291a) Merge branch 'master' into feat/invite-link ### 📊 Changes **1 file changed** (+1 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/endpoints/invite.js` (+1 -3) </details> ### 📄 Description ### Pull Request Description ### Pull Request Type - [x] 🐛 fix ### Relevant Issues resolves #4618 ### What is in this change? Fixed invite endpoint to show actual username validation error instead of generic "Could not create user" message. Users now see: "Username must only contain lowercase letters, periods, numbers, underscores, and hyphens with no spaces." ### Developer Validations - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] I have tested my code functionality --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:21 -05:00
yindo closed this issue 2026-02-22 18:36:21 -05:00
yindo changed title from [PR #4621] fix: unhelpful error message for invite link user creation to [PR #4621] [MERGED] fix: unhelpful error message for invite link user creation 2026-06-05 15:19:53 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4695