various fixes of the blog demo.

This commit is contained in:
agentzh (章亦春)
2010-04-12 18:57:03 +08:00
parent dd1d50c2fe
commit 29d0653849
5 changed files with 14 additions and 12 deletions

View File

@ -263,7 +263,7 @@ $ClientP.post = function (url) {
// if (!formId) throw "No form specified.";
if (this.session) args._session = this.session;
if (!this.session && !args._user)
if (!this.session && !args._user && this.user)
args._user = this.user;
args._last_response = this.genId();
@ -353,7 +353,7 @@ $ClientP.get = function (url, args) {
//if (!this.user) throw "No user specified for OpenResty.";
if (this.session) args._session = this.session;
if (!this.session && !args._user)
if (!this.session && !args._user && this.user)
args._user = this.user;
//args.password = this.password || '';