* Updated text of $Admin#welcome skin (sites cannot be made the front page so easily, anymore)

* Added setup routine to Root.main_action() which is executed when there is an unconfigured root site or no privileged user (admin)
 * Modified $Image#edit skin: check for Image.fileName property insteaed of "created" when deciding whether to show the name and dimension input fields
 * Added missing res.data.title to $Members#register skin
 * Removed app.log() calls when catching login or registration exceptions
 * Added empty User.onLogout() method to get rid of some "errors" in the log file
 * Removed obsolete code
This commit is contained in:
Tobi Schäfer 2008-09-21 17:44:18 +00:00
parent 35be86763d
commit d7d716fa95
8 changed files with 45 additions and 40 deletions

View file

@ -56,11 +56,6 @@ Members.prototype.getPermission = function(action) {
return false;
}
// FIXME: Was this necessary to fix unexpected behaviour? Looks redundant...
/*Members.prototype.link_macro = function(param, action, text) {
return HopObject.prototype.link_macro.apply(this, arguments);
}*/
Members.prototype.main_action = function() {
res.data.title = gettext("Members of {0}", this._parent.title);
res.data.list = renderList(this, "$Membership#member",
@ -85,7 +80,6 @@ Members.prototype.register_action = function() {
title, user.name);
res.redirect(User.getLocation() || this._parent.href());
} catch (ex) {
app.log(ex);
res.message = ex;
}
}
@ -119,7 +113,6 @@ Members.prototype.reset_action = function() {
res.message = gettext("A confirmation mail was sent to your e-mail address.");
res.redirect(this._parent.href());
} catch(ex) {
app.log(ex);
res.message = ex;
}
} else if (req.data.user && req.data.token) {
@ -166,7 +159,6 @@ Members.prototype.login_action = function() {
res.redirect(User.getLocation() || this._parent.href());
} catch (ex) {
res.message = ex;
app.log(ex);
}
}
session.data.token = User.getSalt();