Skip to content

Commit

Permalink
Merge pull request #97 from labhackercd/develop
Browse files Browse the repository at this point in the history
🐛 Save REMOTE_USER username
  • Loading branch information
msfernandes authored Nov 21, 2017
2 parents d77c6a6 + 210975f commit 41e2301
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wikilegis/accounts/middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@ def process_request(self, request):
if user:
# User is valid. Set request.user and persist user in the session
# by logging the user in.
user.username = username
user.save()

request.user = user
auth.login(request, user)

0 comments on commit 41e2301

Please sign in to comment.