Skip to content

Commit baefebc

Browse files
authored
Merge pull request #151 from multinet-app/redirect-login-google
In production, redirect all logins to google oauth
2 parents 8789de7 + bc9713d commit baefebc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

multinet/settings.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,9 @@ class ProductionConfiguration(MultinetMixin, ProductionBaseConfiguration):
5959

6060

6161
class HerokuProductionConfiguration(MultinetMixin, HerokuProductionBaseConfiguration):
62-
pass
62+
# All login attempts in production should go straight to Google
63+
LOGIN_URL = '/accounts/google/login/'
64+
65+
# Don't require a POST request to initiate a Google login
66+
# https://github.com/pennersr/django-allauth/blob/HEAD/ChangeLog.rst#backwards-incompatible-changes-2
67+
SOCIALACCOUNT_LOGIN_ON_GET = True

0 commit comments

Comments
 (0)