From 278abda9758035d03b8d51e98bc0548de0b53ba3 Mon Sep 17 00:00:00 2001 From: Zaptyp Date: Mon, 7 Jun 2021 21:00:47 +0200 Subject: [PATCH] Fakelog.cf fix mark 2 --- app/views.py | 4 ++-- tests/test_views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views.py b/app/views.py index 5e2d39b..d8d2c4c 100644 --- a/app/views.py +++ b/app/views.py @@ -33,10 +33,10 @@ def login(request, *args, **kwargs): Password = data['Password'] symbol = data['Symbol'] 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' 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() 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}: diff --git a/tests/test_views.py b/tests/test_views.py index 51c742e..614dc91 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -46,7 +46,7 @@ class TestViews(TestCase): "loginName": "jan@fakelog.cf", "Password": "jan123", "Symbol": "powiatwulkanowy", - "diaryUrl": "http://cufs.fakelog.cf/" + "diaryUrl": "http://cufs.fakelog.tk/" } print("\033[94mTesting login...")