Exemplo n.º 1
0
        public int InsertSecurityQsn(Int64 userId, string curPassword, string newPassword, Int64 secQsnId, string secAns, int pwdCount)
        {
            try
            {
                UserLogonData userLogonData = new UserLogonData();

                int status = ChangePasswordfun(userId, curPassword, newPassword, pwdCount);

                if (status == 3)
                {
                    return(status);
                }
                else
                {
                    if (userLogonData.UpdateSecurityQuestion(userId, secQsnId, secAns) == true)
                    {
                        return(1);
                    }
                    else
                    {
                        return(0);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }