18 lines
No EOL
494 B
Text
18 lines
No EOL
494 B
Text
var parent = getParent();
|
|
|
|
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.action = this.href(req.action);
|
|
|
|
res.data.title = path.site ? path.site.title : root.getSysTitle();
|
|
|
|
res.data.body = this.renderSkinAsString("sendpwd");
|
|
|
|
parent.renderSkin("page"); |