From 3d942be1b8068fb230597c90efaeb234578b7fc0 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 24 Jul 2007 18:48:12 +0000 Subject: [PATCH] 'master user' hack is now an #ifdef instead of commented out --- citadel/user_ops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 779c41850..4c29bd692 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -361,13 +361,14 @@ int CtdlLoginExistingUser(char *authname, char *trythisname) if (trythisname == NULL) return login_not_found; CC->is_master = 0; -/* This code WORKS! It's commented out because we don't want anyone using the hardcoded password. +#ifdef MASTER_USER_HACK + /* This lives inside an ifdef for now, because it isn't yet secure enough for general deployment */ if (authname) { if (!strcasecmp(authname, MASTER_USER)) { CC->is_master = 1; } } -*/ +#endif safestrncpy(username, trythisname, USERNAME_SIZE); striplt(username); -- 2.30.2