Example #1
0
        public void updatePwd(string user_ID, string pwd)
        {
            string    salt;
            Crypto_BO crypto = new Crypto_BO();

            crypto.password_crypto(user_ID, pwd);
            pwd  = crypto.hashedPassword;
            salt = crypto.salt;
            userDAO userdao = new userDAO();

            userdao.updatePwd(user_ID, pwd, salt);
        }
        /*school_ID, education_level, education_class*/
        public String insertUser(String User_ID, String password, String name, String email, String confirmEmail, String role)
        {
            string result = "";

            if (result == "")
            {
                string    salt;
                Crypto_BO crypto = new Crypto_BO();
                crypto.password_crypto(User_ID, password);
                password = crypto.hashedPassword;
                salt     = crypto.salt;
                objRegister.UserRegistration(User_ID, password, salt, name, email, confirmEmail, role);
            }
            else
            {
                result = "Error";
            }


            return(""); //successful
        }