Beispiel #1
0
        void DoLogin()
        {
            //_dbConversation.UsingTransaction(() =>
            //{
            var user = _dbConversation.Query(new UserByNameQuery(User));

            if (user == null)
            {
                DenyAccess();
                return;
            }
            var pw = _passwordgenerator.CreateHash(user.Salt, Password);

            if (pw != user.Password)
            {
                DenyAccess();
                return;
            }

            //});
            CallFinishInteraction();
        }