diff options
author | Dante Catalfamo | 2020-12-22 00:50:17 -0500 |
---|---|---|
committer | Dante Catalfamo | 2020-12-22 00:50:17 -0500 |
commit | ba953200e43113a6bd78443ac555728019c1aa69 (patch) | |
tree | fb551b766ef5e378fd05b3de95444165cbc6374d /content | |
parent | 09b8036c0e5c05a276c6f1011d4e0e9743ef5deb (diff) | |
download | blog-ba953200e43113a6bd78443ac555728019c1aa69.tar.gz blog-ba953200e43113a6bd78443ac555728019c1aa69.tar.bz2 blog-ba953200e43113a6bd78443ac555728019c1aa69.zip |
bsd-auth: Be more specific about username length check
Diffstat (limited to 'content')
-rw-r--r-- | content/posts/WIP-how-bsd-authentication-works/index.org | 4 |
1 files changed, 2 insertions, 2 deletions
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. |