private bool IsAValidKey(string key) { bool retVal = !string.IsNullOrEmpty(key); if (retVal) { RequestTable table = new RequestTable(); table.ExpireOldRequests(); int nUserID = table.GetValidRequest(key); retVal = (nUserID >= 0); if (retVal) { UsersDB db = new UsersDB(); db.MarkUserEmailVerifyied(nUserID); } } return retVal; }
private bool IsAValidKey(string key) { bool retVal = !string.IsNullOrEmpty(key); if (retVal) { RequestTable table = new RequestTable(); table.ExpireOldRequests(); int nUserID = table.GetValidRequest(key); retVal = (nUserID >= 0); if (retVal) { UsersDB db = new UsersDB(); db.MarkUserEmailVerifyied(nUserID); } } return(retVal); }