Fakelog.cf fix mark 2

This commit is contained in:
Zaptyp 2021-06-07 21:00:47 +02:00
parent effa320e2f
commit 278abda975
2 changed files with 3 additions and 3 deletions

View file

@ -33,10 +33,10 @@ def login(request, *args, **kwargs):
Password = data['Password'] Password = data['Password']
symbol = data['Symbol'] symbol = data['Symbol']
diary_url = data['diaryUrl'] diary_url = data['diaryUrl']
if diary_url != 'http://cufs.fakelog.cf/': if diary_url != 'http://cufs.fakelog.tk/':
link = f'{diary_url}{symbol}/Account/LogOn?ReturnUrl=%2F{symbol}%2FFS%2FLS%3Fwa%3Dwsignin1.0%26wtrealm%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252f{symbol}%252fLoginEndpoint.aspx%26wctx%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252f{symbol}%252fLoginEndpoint.aspx' link = f'{diary_url}{symbol}/Account/LogOn?ReturnUrl=%2F{symbol}%2FFS%2FLS%3Fwa%3Dwsignin1.0%26wtrealm%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252f{symbol}%252fLoginEndpoint.aspx%26wctx%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252f{symbol}%252fLoginEndpoint.aspx'
else: else:
link = 'http://cufs.fakelog.cf/powiatwulkanowy/FS/LS?wa=wsignin1.0&wtrealm=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx&wctx=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx' link = 'http://cufs.fakelog.tk/powiatwulkanowy/FS/LS?wa=wsignin1.0&wtrealm=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx&wctx=http://uonetplus.fakelog.localhost:300/powiatwulkanowy/LoginEndpoint.aspx'
s = requests.Session() s = requests.Session()
sender_return = sender(link, loginName, Password, ('loginName', 'Password'), 'Zła nazwa użytkownika lub hasło', symbol, diary_url, s) sender_return = sender(link, loginName, Password, ('loginName', 'Password'), 'Zła nazwa użytkownika lub hasło', symbol, diary_url, s)
if sender_return == {'success': False}: if sender_return == {'success': False}:

View file

@ -46,7 +46,7 @@ class TestViews(TestCase):
"loginName": "jan@fakelog.cf", "loginName": "jan@fakelog.cf",
"Password": "jan123", "Password": "jan123",
"Symbol": "powiatwulkanowy", "Symbol": "powiatwulkanowy",
"diaryUrl": "http://cufs.fakelog.cf/" "diaryUrl": "http://cufs.fakelog.tk/"
} }
print("\033[94mTesting login...") print("\033[94mTesting login...")