- now using res.data.* instead of res.* - modifications needed due to rewriting of objectFunctions
15 lines
409 B
Text
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");
|
|
|