code: def get_account_details(self, account):
          
          result = {}
          try:
              luser = self._get_account(account.username)
              luser = preload(luser, database=self._database)
          except ObjectDoesNotExist:
              return result
  
          for i, j in luser.items():
              if i != 'userPassword' and j is not None:
                  result[i] = j
  
          return result
docs: Get the account details.