diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-07-17 21:49:30 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-07-17 21:49:30 -0400 |
commit | 6148ad8185f6e3c05eaa980d14e4f68cd37c89fe (patch) | |
tree | 9561060513b65f45566207b153a0b95d6c4b21c6 /blog.c | |
parent | d1746995e5aa1497d46ad95726918233713a7b6d (diff) |
rename verify_creds() to authenticate()
Diffstat (limited to 'blog.c')
-rw-r--r-- | blog.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,8 +16,9 @@ int handle_post(void) printf("Content-Type: text/plain\r\n\r\n"); read_post_data(); - if (!verify_creds(find_post_data("username"), find_post_data("password"))) { - // handle invalid login + if (!authenticate(find_post_data("username"), find_post_data("password"))) { + printf("Bad login!"); + return 0; } for (char **e = environ; e && *e; e++) { |