]> Nishi Git Mirror - mandshurica.git/commitdiff
return MS_AUTH_FAIL instead of MS_AUTH_ERROR
authornishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sat, 11 May 2024 09:22:16 +0000 (09:22 +0000)
committernishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sat, 11 May 2024 09:22:16 +0000 (09:22 +0000)
git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@87 f982e544-4a7d-3444-ad1a-fde59a2a69f1

Module/cookie.c
mkpasswd.pl

index 7daae93e8a7a72524caf8b5bdd70df03741f9370..39a2fbb000f4365eabf06ef34de824728b1fb84d 100644 (file)
@@ -112,7 +112,7 @@ int mod_auth(const char* username, const char* password, char** ptr) {
                        char* pwd = mandshurica_db_get(db, username);
                        if(pwd == NULL) {
                                mandshurica_db_close(db);
-                               return MS_AUTH_ERROR;
+                               return MS_AUTH_FAIL;
                        } else {
                                char* sh = config->mandshurica_sha512(password);
                                if(strcmp(sh, pwd) == 0) {
index 2e662f4ff7b1b13c27771c28704e7ba7397d972b..d4dc1132922f7681545702dd5a4ac67b2b44bd51 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/env perl
 # $Id$
 
+# Legacy tool ; will be replaced with C one soon.
+
 use Digest::SHA qw(sha512 sha512_hex);
 require Term::ReadKey;