antville/code/User/objectFunctions.js

27 lines
501 B
JavaScript
Raw Normal View History

2001-06-18 08:57:33 +00:00
/**
* send a mail to confirm registration
*/
function sendConfirmationMail() {
var mail = new Mail();
mail.setFrom(getProperty("adminEmail"));
mail.setTo(user.email);
mail.setSubject("Welcome to Antville!");
mail.setText(this.renderSkinAsString("mailbody"));
2001-06-18 08:57:33 +00:00
mail.send();
}
/**
* check if user is blocked
*/
function isBlocked() {
if (parseInt(this.blocked,10)) {
2001-06-18 08:57:33 +00:00
res.message = "Sorry, you were blocked by an Administrator!";
return true;
} else
return false;
}