Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django example: trying to get only the email auth work for now... #118

Closed
YAmikep opened this issue Dec 5, 2013 · 3 comments
Closed

django example: trying to get only the email auth work for now... #118

YAmikep opened this issue Dec 5, 2013 · 3 comments

Comments

@YAmikep
Copy link

YAmikep commented Dec 5, 2013

Hi,

First, let me tell you that I really like your work with this app.
I am trying to use only the email for now to make it simple (No Facebook, Google etc, I just want a User to sign up with an email and log in with an email)
I decided to give it a try via the django example app included in the repository but I have some issues...

First, there were several errors about missing settings. I think you must have a couple of settings defined in your local file "local_settings.py" and since it is not in the repository, some of the settings are missing. Could you give us an example of the "local_settings.py" file to see what settings need to be setup?

After I resolved the missing settings errors, I went to this page to register an account with an email address: http://localhost:8051/signup-email/
It worked and I was logged in.

Then I had a hard time logging out and I finally added a view on the views.py file. from django.contrib.auth import views as auth_views
url(r'^logout/$', auth_views.logout, name='auth_logout'),``

Now, when I want to log in with the email I used to register, it creates a new account instead of logging me in, why ? http://localhost:8051/login/email/

Thanks

@omab
Copy link
Owner

omab commented Dec 9, 2013

@YAmikep my local_settings.py is only used to define application keys and secrets and email server credentials (only needed when email confirmation pipeline is enabled) and that's all.

How does your /signup-email/ view work? Is it related to python-social-auth in some way? If it only creates a User instance, then it won't work with python-social-auth.

@airtonix
Copy link

My assumption was that any mention of emails with urls/views in the example were to do with triggering the required email pipeline when someone logged in with a social account that doesn't return with it an email address.

@omab
Copy link
Owner

omab commented Feb 10, 2014

Closing by inactivity, reopen if needed.

@omab omab closed this as completed Feb 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants