RE: [release] Only Allowed Email can sign-in
Or to shorten the script. You can just use an array like so..
function OnEvent_Signin(Email)
{
var emails = new Array("account1@live.com","account2@live.com","etc..")
for(i=0; i<emails.length; i++){
if(Email == emails[i])
{
var Message = "Hello :\n " + Messenger.MyName + "!";
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("Allowed", Message,'notify.mp3');
}
else
{
var Message = "Access Denied " + "!";
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("Not Allowed", Message,'notify.mp3');
Messenger.signout();
}
}
}
It should work. I havent tested it though.
|