* Edit user: markup was showing through because USERLIST:PASSWD was not defined;...
authorArt Cancro <ajc@citadel.org>
Mon, 19 Jan 2009 18:20:51 +0000 (18:20 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 19 Jan 2009 18:20:51 +0000 (18:20 +0000)
webcit/useredit.c

index 0c758fe9e7e7fdd7d72debecbfcd9eec6ec687bc..17bd25a74ff4c2aed4864027c8ee1333a93c36bc 100644 (file)
@@ -285,6 +285,12 @@ void tmplput_USERLIST_UserName(StrBuf *Target, WCTemplputParams *TP)
        StrBufAppendTemplate(Target, TP, ul->UserName, 0);
 }
 
+void tmplput_USERLIST_Password(StrBuf *Target, WCTemplputParams *TP)
+{
+       UserListEntry *ul = (UserListEntry*) CTX;
+       StrBufAppendTemplate(Target, TP, ul->Passvoid, 0);
+}
+
 void tmplput_USERLIST_AccessLevelNo(StrBuf *Target, WCTemplputParams *TP)
 {
        UserListEntry *ul = (UserListEntry*) CTX;
@@ -686,6 +692,7 @@ InitModule_USEREDIT
        WebcitAddUrlHandler(HKEY("create_user"), create_user, 0);
 
        RegisterNamespace("USERLIST:USERNAME",      0, 1, tmplput_USERLIST_UserName, CTX_USERLIST);
+       RegisterNamespace("USERLIST:PASSWD",        0, 1, tmplput_USERLIST_Password, CTX_USERLIST);
        RegisterNamespace("USERLIST:ACCLVLNO",      0, 0, tmplput_USERLIST_AccessLevelNo, CTX_USERLIST);
        RegisterNamespace("USERLIST:ACCLVLSTR",     0, 0, tmplput_USERLIST_AccessLevelStr, CTX_USERLIST);
        RegisterNamespace("USERLIST:UID",           0, 0, tmplput_USERLIST_UID, CTX_USERLIST);