1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 19:40:21 +01:00

3 Commits
v0.6 ... v0.7

Author SHA1 Message Date
0ffb9f9406 Version bump to 0.7 2018-01-25 19:02:15 +01:00
2475bb029d Merge pull request #2 from lhl/master
Uploaded cookie check for logins
2018-01-24 22:06:19 +01:00
lhl
01dfc0e8bc Uploaded cookie check for logins 2018-01-24 06:35:39 -08:00
2 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ except ImportError:
setup(name="slack-backup", setup(name="slack-backup",
packages=["slack_backup"], packages=["slack_backup"],
version="0.6", version="0.7",
description="Make copy of slack converstaions", description="Make copy of slack converstaions",
author="Roman Dobosz", author="Roman Dobosz",
author_email="gryf73@gmail.com", author_email="gryf73@gmail.com",
@@ -21,7 +21,7 @@ setup(name="slack-backup",
scripts=["scripts/slack-backup"], scripts=["scripts/slack-backup"],
classifiers=["Programming Language :: Python :: 3", classifiers=["Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.4",
"Development Status :: 3 - Alpha", "Development Status :: 4 - Beta",
"Environment :: Console", "Environment :: Console",
"Intended Audience :: End Users/Desktop", "Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: BSD License", "License :: OSI Approved :: BSD License",

View File

@@ -175,8 +175,7 @@ class Download(object):
'password': self.password, 'password': self.password,
'signin': 1}) 'signin': 1})
self.cookies = requests.utils.dict_from_cookiejar(self.session.cookies) self.cookies = requests.utils.dict_from_cookiejar(self.session.cookies)
if not ('a' in self.cookies and 'b' in self.cookies and if not ('d' in self.cookies and 'd-s' in self.cookies):
('a-' + self.cookies['a']) in self.cookies):
logging.error('Failed to login into Slack app') logging.error('Failed to login into Slack app')
else: else:
self._authorized = True self._authorized = True