16 lines
No EOL
455 B
Text
16 lines
No EOL
455 B
Text
checkIfLoggedIn(this.href(req.action));
|
|
|
|
var parent = setLayout();
|
|
|
|
if (req.data.submit == "cancel" || req.data.cancel)
|
|
res.redirect(parent.href());
|
|
else if (req.data.submit == "save" || req.data.save) {
|
|
var result = this.updateUser(req.data);
|
|
res.message = result.message;
|
|
if (!result.error)
|
|
res.redirect(parent.href());
|
|
}
|
|
|
|
res.data.title = path.weblog ? path.weblog.title : "Antville";
|
|
|
|
res.data.body = user.renderSkinAsString("edit"); |