From d864cea650d853b06365e1939b6dd8b907e1eecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 12 Apr 2024 09:00:12 +0200 Subject: [PATCH] Update basic_auth.ex --- lib/plug/basic_auth.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plug/basic_auth.ex b/lib/plug/basic_auth.ex index f5ec9be2..25354f47 100644 --- a/lib/plug/basic_auth.ex +++ b/lib/plug/basic_auth.ex @@ -73,7 +73,8 @@ defmodule Plug.BasicAuth do * The supplied `user` and `pass` may be empty strings; * If you are comparing the username and password with existing strings, - do not use `==/2`. Use `Plug.Crypto.secure_compare/2` instead. + do not use `==/2` or pattern matching. Use `Plug.Crypto.secure_compare/2` + instead. """ import Plug.Conn