From ba6981e344e880936b5e995c433dae85659ba780 Mon Sep 17 00:00:00 2001 From: Mitar Date: Tue, 7 Dec 2021 23:54:30 -0800 Subject: [PATCH] docs: improve text around bcrypt (#2037) --- docs/docs/concepts/credentials/username-email-password.mdx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/docs/concepts/credentials/username-email-password.mdx b/docs/docs/concepts/credentials/username-email-password.mdx index bad32c742937..c6a2ad819a27 100644 --- a/docs/docs/concepts/credentials/username-email-password.mdx +++ b/docs/docs/concepts/credentials/username-email-password.mdx @@ -36,9 +36,8 @@ hashers: :::warning -Due to the way BCrypt is implemented in Golang, passwords will be truncated -after 72 characters before being hashed. This implies that all characters in the -password after position 72 will be ignored! +BCrypt has a maximum length of 72 bytes for passwords. If a longer password +is attempted to be used, an error will be returned to the user. :::