Now we name all the private contexts.
[citadel.git] / citadel / user_ops.c
index e376c9d32d0ab4de22d6c5daf855ed74d0026926..e75bebccf6c11d02929d01869091375a4bc8b5a1 100644 (file)
@@ -59,7 +59,7 @@ int chkpwd_read_pipe[2];
  * makeuserkey() - convert a username into the format used as a database key
  *              (it's just the username converted into lower case)
  */
-static INLINE void makeuserkey(char *key, char *username) {
+INLINE void makeuserkey(char *key, char *username) {
        int i, len;
 
        len = strlen(username);
@@ -427,9 +427,9 @@ int CtdlLoginExistingUser(char *authname, char *trythisname)
 
        if (trythisname == NULL) return login_not_found;
        
-       if (!strcasecmp(trythisname, "Citadel"))
+       if (!strncasecmp(trythisname, "SYS_", 4))
        {
-               CtdlLogPrintf(CTDL_DEBUG, "System user \"Citadel\" is not allowed to log in.\n");
+               CtdlLogPrintf(CTDL_DEBUG, "System user \"%s\" is not allowed to log in.\n", trythisname);
                return login_not_found;
        }