From: konekoneko Date: Tue, 13 Nov 2012 14:53:25 +0000 (+0900) Subject: 更新日付を記録するようにした X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=7c5ee06804c70cdddb4adbe737880ba78e5e6124;p=webchat%2FWebChat.git 更新日付を記録するようにした パスワードを変更できるようにした --- diff --git a/init.sql b/init.sql index bc45162..9b510c5 100644 --- a/init.sql +++ b/init.sql @@ -17,5 +17,6 @@ create table list(name VARCHAR(64) NOT NULL, race VARCHAR(64), look TEXT, password VARCHAR(16), + lastmodified DATETIME, etc TEXT, PRIMARY KEY(name)); diff --git a/profile.js b/profile.js index 1a4a937..170ce9b 100644 --- a/profile.js +++ b/profile.js @@ -239,6 +239,7 @@ function ProfileCollection() race:data.race, look:data.look, password:data.password, + lastmodified:new Date(), etc:data.etc }; async.waterfall([ @@ -264,6 +265,8 @@ function ProfileCollection() weight:data.weight, race:data.race, look:data.look, + password:data.password, + lastmodified:new Date(), etc:data.etc }; async.waterfall([ diff --git a/public/profile/edit.ejs b/public/profile/edit.ejs index c975cb7..eeba9f8 100644 --- a/public/profile/edit.ejs +++ b/public/profile/edit.ejs @@ -15,6 +15,10 @@ + パスワード + + + å¹´é½¢ diff --git a/public/profile/list.ejs b/public/profile/list.ejs index 6184b85..f7b063d 100644 --- a/public/profile/list.ejs +++ b/public/profile/list.ejs @@ -20,11 +20,13 @@ 名前 å¹´é½¢ + 更新日時 <% for(var i=0; i <%= list[i].name %> <%= list[i].age %> + <%= list[i].lastmodified %> <% } %>