Example #1
0
        protected bool updateUserToken(string userId)
        {
            string newToken    = Guid.NewGuid().ToString();
            string newValidity = commonDao.GetCurrentUtcTime(Constants.Configuration.TOKEN_VALID_HOURS);

            return(userDao.InsertOrUpdateToken(userId, newToken, newValidity));
        }