antville/code/MemberMgr/sendpwd.hac
Robert Gaggl 1c5da10acc - removing assignments to res.head
- now using res.data.* instead of res.*
- modifications needed due to rewriting of objectFunctions
2001-12-10 23:08:47 +00:00

15 lines
409 B
Text

var parent = setLayout();
if (req.data.submit == "cancel" || req.data.cancel)
res.redirect(parent.href());
else if (req.data.submit == "send" || req.data.send) {
var result = this.sendPwd(req.data.email);
res.message = result.message;
if (!result.error)
res.redirect(parent.href());
}
res.data.title = "Antville - Password forgotten";
res.data.body = this.renderSkinAsString("sendpwd");