use the short commit hash
authorArt Cancro <ajc@citadel.org>
Thu, 30 Dec 2010 21:43:28 +0000 (16:43 -0500)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 11:16:47 +0000 (11:16 +0000)
citadel/scripts/mk_svn_revision.sh
citadel/user_ops.c
webcit/static/styles/modal.css

index cb8af4e0467a645686bbe91be55ef522cb650b98..144ffa4ab9d7e5c6cf2a02bc33b3d495324fa800 100755 (executable)
@@ -25,7 +25,7 @@ if test -d $SRC_DIR/.svn  ; then
 else 
     if test -d $SRC_DIR/../.git  ; then
        echo "have Git repository."
-       BUILD=`/usr/bin/git log -1 --pretty=%H . `
+       BUILD=`/usr/bin/git log -1 --pretty=%h . `
        echo "This code base git-revision: $BUILD"
        CAN_BUILD_SVN_REVISION="yes"
     else
index d635f96177eda76a3b36c922618e67489e851dc5..1c4c9480ae4358f71c53729682e446da165aca76 100644 (file)
@@ -812,10 +812,14 @@ void CtdlUserLogout(void)
        if ((CCC->user.axlevel == AxDeleted) && (CCC->user.usernum))
                purge_user(CCC->user.fullname);
 
+       /* Clear out the user record in memory so we don't behave like a ghost */
+       memset(&CCC->user, 0, sizeof(struct ctdluser));
+
        /* Free any output buffers */
        unbuffer_output();
 }
 
+
 /*
  * Validate a password on the host unix system by talking to the chkpwd daemon
  */
@@ -825,7 +829,7 @@ static int validpw(uid_t uid, const char *pass)
        int rv = 0;
 
        if (IsEmptyStr(pass)) {
-               CtdlLogPrintf(CTDL_DEBUG, "refusing to check empty password for uid=%d using chkpwd...\n", uid);
+               CtdlLogPrintf(CTDL_DEBUG, "Refusing to chkpwd for uid=%d with empty password.\n", uid);
                return 0;
        }
 
index 6389974b8528c5b0809b0061bc589c7acaed09e8..19fa213bf294cdececa31f56bde8f639113cbf34 100644 (file)
@@ -33,7 +33,7 @@
        display:table;
        height:100%;
        vertical-align:middle;
-       width:300px;
+       width:80%;
        z-index:9999;
        *width:100%;
        *text-align:center;
@@ -44,7 +44,7 @@
 .md-dialog-wrap {
        display:table-cell;
        vertical-align:middle;
-       *width:300px;
+       *width:80%;
        *text-align:left;
        *zoom:1;
        *display:inline;