Skip to content
Snippets Groups Projects
Commit 50d771fa authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Redirect new users to the account page and dont use next on login

parent e45c0e7d
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</form> </form>
<div class="wrapper wrapper--inner-space-large"> <div class="wrapper wrapper--inner-space-large">
<a class="link link--button link--button-long-text" href="{% url "social:begin" "google-oauth2" %}?next={% url "users:account" %}">Log in with your OTF email</a> <a class="link link--button link--button-long-text" href="{% url "social:begin" "google-oauth2" %}">Log in with your OTF email</a>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
...@@ -318,7 +318,7 @@ SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '' ...@@ -318,7 +318,7 @@ SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = ''
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = '' SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = ''
SOCIAL_AUTH_LOGIN_ERROR_URL = 'users:login' SOCIAL_AUTH_LOGIN_ERROR_URL = 'users:login'
SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = 'users:dashboard' SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = 'users:account'
# For pipelines, see http://python-social-auth.readthedocs.io/en/latest/pipeline.html?highlight=pipelines#authentication-pipeline # For pipelines, see http://python-social-auth.readthedocs.io/en/latest/pipeline.html?highlight=pipelines#authentication-pipeline
# Create / associate accounts (including by email) # Create / associate accounts (including by email)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment