Ejemplo 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;
        }
Ejemplo 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;
		}