Пример #1
0
        virtual public bool setValue(string gValue, int UserId)
        {
            if (!validation(gValue))
            {
                return(false);
            }

            UserDatabaseController udb = new UserDatabaseController();

            udb.SetFieldValue(UserId, this, gValue);

            return(true);
        }
Пример #2
0
        override public bool setValue(string gValue, int UserId)
        {
            if (!validation(gValue))
            {
                return(false);
            }


            UserDatabaseController udb    = new UserDatabaseController();
            PasswordHasher         Hasher = new PasswordHasher();

            udb.SetFieldValue(UserId, this, Hasher.HashPassword(gValue));

            return(true);
        }