From ba953200e43113a6bd78443ac555728019c1aa69 Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Tue, 22 Dec 2020 00:50:17 -0500 Subject: bsd-auth: Be more specific about username length check --- content/posts/WIP-how-bsd-authentication-works/index.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content') diff --git a/content/posts/WIP-how-bsd-authentication-works/index.org b/content/posts/WIP-how-bsd-authentication-works/index.org index fc9aaf0..a63d731 100644 --- a/content/posts/WIP-how-bsd-authentication-works/index.org +++ b/content/posts/WIP-how-bsd-authentication-works/index.org @@ -403,8 +403,8 @@ auth_session_t *auth_usercheck(char *name, char *style, char *type, char *password) #+END_SRC - =auth_usercheck= first checks that =*name= doesn't begin with a - hyphen, and that it's not too long. + =auth_usercheck= first checks that =*name= is a valid username. This + means that it doesn't begin with a hyphen, had a non-zero length. If =*style= is =NULL=, it checks if =*name= is in the =user:style= format, and splits it accordingly. -- cgit v1.2.3