Force login before giving community auth consent
commitc597b0288c7db9af8d8ba68891ed83cb333677f3
authorMagnus Hagander <magnus@hagander.net>
Mon, 25 Jun 2018 14:43:59 +0000 (25 16:43 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 25 Jun 2018 14:43:59 +0000 (25 16:43 +0200)
tree61a02ecd13108ed1ef1a0727fdd44a489355a7e8
parentff1222337a686da0da9565740596f40746aef16b
Force login before giving community auth consent

In the normal workflow this would always happen, but if the user got to
the page without being logged in (probably most likely to happen if the
session timed out while waiting to proceed) we would crash on trying to
create an invalid consent record. Instead, force a re-login in this
case.
pgweb/account/views.py