Skip to content

Commit f630405

Browse files
deacon-mpdeacon-mpFiona McCraefionamccraeuruwhy
authored
fix: --fresh fails to clean cookie_storage, auth_svc crashes on key mismatch (#3355)
* fix: --fresh fails to clean cookie_storage, auth_svc crashes on key mismatch --------- Co-authored-by: deacon-mp <mperry@mitre.org> Co-authored-by: Fiona McCrae <fmccrae@mitre.org> Co-authored-by: Fiona McCrae <35509590+fionamccrae@users.noreply.github.com> Co-authored-by: uruwhy <58484522+uruwhy@users.noreply.github.com>
1 parent 28a9be4 commit f630405

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/service/auth_svc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def apply(self, app, users):
8383
except (ValueError, TypeError):
8484
max_age = None
8585
try:
86-
if os.path.exists(os.path.join('data', cookie_file)):
86+
if os.path.exists(cookie_path):
8787
secret_key = file_svc._read(cookie_path)
8888
self.log.debug('Loaded persistent session key from data/cookie_storage')
8989
else:

app/service/data_svc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
'data/results/*',
3636
'data/sources/*',
3737
'data/object_store',
38+
'data/cookie_storage',
3839
)
3940

4041
PAYLOADS_CONFIG_STANDARD_KEY = 'standard_payloads'

0 commit comments

Comments
 (0)