예제 #1
0
파일: Users.cs 프로젝트: hadasat/Web-Store-
        /*** SERVICE LAYER FUNCTIONS***/

        public Member loginMember(string username, string password)
        {
            //TODO:: load shopping basket


            int ID = ConnectionStubTemp.identifyUser(username, password);

            if (ID == -1)
            {
                //don't log password!
                Logger.Log("event", logLevel.INFO, "user: "******"tried to log in and failed");
                throw new Exception("incorrect username or password");
            }
            Logger.Log("event", logLevel.INFO, "user: "******"log in and succses");
            return(ConnectionStubTemp.getMember(ID));
        }