Skip to content

Commit 2f30508

Browse files
committed
merged with dev
2 parents 44037da + 44a4ee0 commit 2f30508

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

izpitnik/accounts/api/views.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_token(cls, user):
2121
token = super().get_token(user)
2222

2323
token['is_admin'] = user.is_staff
24-
token['roles'] = [role.name for role in user.groups.all()]
24+
# token['roles'] = [role.name for role in user.groups.all()]
2525
token['is_superuser'] = user.is_superuser
2626

2727
return token
@@ -38,9 +38,8 @@ def post(self, request, *args, **kwargs):
3838
samesite = False
3939

4040
if ENV == "production":
41-
pass
42-
# secure = True
43-
# samesite = 'Strict'
41+
secure = True
42+
samesite = 'Strict'
4443

4544
if refresh:
4645
response.set_cookie(

izpitnik/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
'fixtures'
236236
]
237237

238-
if config("ENV") == "production":
238+
if False and config("ENV") == "production":
239239
CSRF_COOKIE_SECURE = True # If using HTTPS
240240
SESSION_COOKIE_SECURE = True # If using HTTPS
241241
SECURE_SSL_REDIRECT = True # Force HTTPS

0 commit comments

Comments
 (0)