From: Joey Hess Date: Thu, 9 Jun 2011 14:58:05 +0000 (-0400) Subject: record email of new users in userinfo for userlist X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=72f30a40a39cda421de8b7c89c754a8ea5d2cae6;p=ikiwiki.git record email of new users in userinfo for userlist --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 6a04decb6..62383b6fd 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -429,7 +429,7 @@ sub cgi (;$$) { # userinfo db. if (! userinfo_get($session->param("name"), "regdate")) { userinfo_setall($session->param("name"), { - email => "", + email => defined $session->param("email") ? $session->param("email") : "", password => "", regdate => time, }) || error("failed adding user");