这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #1289

What is in this change?

Prevent a password-protected instance from being self-owned by accidentally using .env file-protected chars in their password since they will be either removed or escaped and therefore the password will no longer match or will be broken on instance reboot as loading from the .env on boot will only boot what the system can read as opposed to what the user actually wanted the password to be.

Regex: /^[a-zA-Z0-9_\-!@$%^&*();]+$/

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat changed the title prevent accidental lockout from restrict chars in single pass mode prevent accidental lockout from restricted chars in single pass mode May 11, 2024
@timothycarambat timothycarambat merged commit 7b18a36 into master May 11, 2024
@timothycarambat timothycarambat deleted the 1289-prevent-protected-chars-in-authToken branch May 11, 2024 00:29
@Propheticus
Copy link

works
image

CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Jul 31, 2024
…intplex-Labs#1352)

* prevent accidental lockout from restrict chars in single pass mode

* update error message
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 1, 2024
…intplex-Labs#1352)

* prevent accidental lockout from restrict chars in single pass mode

* update error message
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 2, 2024
…intplex-Labs#1352)

* prevent accidental lockout from restrict chars in single pass mode

* update error message
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 3, 2024
…intplex-Labs#1352)

* prevent accidental lockout from restrict chars in single pass mode

* update error message
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
…intplex-Labs#1352)

* prevent accidental lockout from restrict chars in single pass mode

* update error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: An admin password containing `, ' or # does not work

3 participants