Skip to content

Commit

Permalink
auth: Clean up redundant request.session.modified change.
Browse files Browse the repository at this point in the history
This line was added in 94e099e,
presumably because of the
del request.session["multiuse_object_key"]
line that was just above it.
Looks like it should have been removed in
868a763, which eliminated that `del`
operation.
  • Loading branch information
mateuszmandera authored and timabbott committed Nov 11, 2022
1 parent f3135eb commit b5b8cc0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion zerver/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ def maybe_send_to_registration(
)

if multiuse_obj is not None:
request.session.modified = True
streams_to_subscribe = list(multiuse_obj.streams.all())
prereg_user.streams.set(streams_to_subscribe)
prereg_user.invited_as = invited_as
Expand Down

0 comments on commit b5b8cc0

Please sign in to comment.