mirror of
https://github.com/Noettore/fattureCCSR.git
synced 2025-10-15 03:36:39 +02:00
Fixed NTLM domain
This commit is contained in:
@@ -5,7 +5,6 @@ import sys
|
|||||||
import getopt
|
import getopt
|
||||||
import subprocess
|
import subprocess
|
||||||
import atexit
|
import atexit
|
||||||
from requests.models import RequestField
|
|
||||||
import wx
|
import wx
|
||||||
import wx.adv
|
import wx.adv
|
||||||
import requests
|
import requests
|
||||||
@@ -284,7 +283,7 @@ class LoginDialog(wx.Dialog):
|
|||||||
"""check credentials and login"""
|
"""check credentials and login"""
|
||||||
if self.username.GetValue() not in ("", None) and self.password.GetValue() not in ("", None):
|
if self.username.GetValue() not in ("", None) and self.password.GetValue() not in ("", None):
|
||||||
session = self.GetParent().session
|
session = self.GetParent().session
|
||||||
session.auth = requests_ntlm.HttpNtlmAuth("sr\\"+self.username.GetValue(), self.password.GetValue())
|
session.auth = requests_ntlm.HttpNtlmAuth("sanrossore\\"+self.username.GetValue(), self.password.GetValue())
|
||||||
try:
|
try:
|
||||||
login = session.get('https://report.casadicurasanrossore.it:8443/Reports/browse/')
|
login = session.get('https://report.casadicurasanrossore.it:8443/Reports/browse/')
|
||||||
if login.status_code == 200:
|
if login.status_code == 200:
|
||||||
|
Reference in New Issue
Block a user