diff --git a/nsupdate/accounts/templates/registration/login.html b/nsupdate/accounts/templates/registration/login.html index 5a8798f..23b9c6e 100644 --- a/nsupdate/accounts/templates/registration/login.html +++ b/nsupdate/accounts/templates/registration/login.html @@ -22,7 +22,7 @@ diff --git a/nsupdate/settings.py b/nsupdate/settings.py index 3ebd167..a7c78c3 100644 --- a/nsupdate/settings.py +++ b/nsupdate/settings.py @@ -243,27 +243,27 @@ AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', ) -SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/logged-in/' +SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/' # Used to redirect the user once the auth process ended successfully. # The value of ?next=/foo is used if it was present -SOCIAL_AUTH_LOGIN_ERROR_URL = '/login-error/' +#SOCIAL_AUTH_LOGIN_ERROR_URL = '/login-error/' # URL where the user will be redirected in case of an error -SOCIAL_AUTH_LOGIN_URL = '/login-url/' -# Is used as a fallback for LOGIN_ERROR_URL +SOCIAL_AUTH_LOGIN_URL = '/accounts/login/' +# Is used as a fallback for LOGIN_ERROR_URL (if it is not defined). -SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/new-users-redirect-url/' +#SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/new-users-redirect-url/' # Used to redirect new registered users, will be used in place of SOCIAL_AUTH_LOGIN_REDIRECT_URL if defined. -SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = '/new-association-redirect-url/' +#SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = '/new-association-redirect-url/' # Like SOCIAL_AUTH_NEW_USER_REDIRECT_URL but for new associated accounts (user is already logged in). Used in place of # SOCIAL_AUTH_LOGIN_REDIRECT_URL -SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/account-disconnected-redirect-url/' +SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/' # The user will be redirected to this URL when a social account is disconnected -SOCIAL_AUTH_INACTIVE_USER_URL = '/inactive-user/' +SOCIAL_AUTH_INACTIVE_USER_URL = '/' # Inactive users can be redirected to this URL when trying to authenticate. #SOCIAL_AUTH_USER_MODEL = 'foo.bar.User'