Esempio n. 1
0
        public async Task <Boolean> ValidateUser(String struser, String strpass)
        {
            var     user     = new UserSvc();
            UserDTO userdata = new UserDTO();

            try {
                userdata = await user.Get(struser, strpass);

                //this.userdata = conferences.OrderBy(x => x.Name).ToList();
            }
            catch (Exception) {
                return(false);
            }

            if (userdata.username == struser)
            {
                AuthenticatedUser = userdata;
                return(true);
            }
            else
            {
                return(false);
            }

            //return Boolean;
        }
Esempio n. 2
0
		public async Task<Boolean> ValidateUser(String struser , String strpass) {
			var user = new UserSvc();
			UserDTO userdata = new UserDTO();
			try {

			userdata = await user.Get (struser,strpass);
			//this.userdata = conferences.OrderBy(x => x.Name).ToList();
			}
			catch(Exception) {
				return false;
			}

			if (userdata.username == struser) {
				AuthenticatedUser = userdata;
				return true;
			}
			else
				return false;

			//return Boolean;
		}