I have written a simple deluge script for a Sign in App. Is there a way to prevent a user who is already signed in from signing in again? Likewise, is there a way to prevent a user who is already signed out from signing out again? What I have below populates the Staus with either Sign In or Sign Out but the user can manually override this is and sign In/Out twice Website
var = Sign_in_out[UserName == input.UserName] sort by Added_Time Desc;
if(var.Status == "Sign In")
{
Status.select("Sign Out");
}
else if(var.Status == "Sign Out")
{
Status.select("Sign In");
}
else
{
Status.select("Sign In");
}