Beispiel #1
0
        public bool OnLogin(string username, string pwd)
        {
            string password = Common.Core.Logic.Utils.Utilities.ConvertStringToMD5(pwd);
            bool   ok       = userDBAccess.CheckLogin(username, password);

            return(ok);
        }
Beispiel #2
0
        //TODO: Code Logic here
        // Commit thu
        /// <summary>
        /// Check Login
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public bool CheckLogin(string username, string password)
        {
            bool result = userDBAccess.CheckLogin(username, password);

            user        = userDBAccess.users;
            Username    = userDBAccess.Username;
            Password    = userDBAccess.Password;
            ErrorString = userDBAccess.errorString;
            return(result);
        }