{"action":"created","issue":{"url":"https://api.github.com/repos/bread-and-pepper/django-userena/issues/481","labels_url":"https://api.github.com/repos/bread-and-pepper/django-userena/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/bread-and-pepper/django-userena/issues/481/comments","events_url":"https://api.github.com/repos/bread-and-pepper/django-userena/issues/481/events","html_url":"https://github.com/bread-and-pepper/django-userena/issues/481","id":79447221,"number":481,"title":"User created outside of Userena workflow cannot edit profile","user":{"login":"deronsizemore","id":68437,"avatar_url":"https://avatars.githubusercontent.com/u/68437?v=3","gravatar_id":"","url":"https://api.github.com/users/deronsizemore","html_url":"https://github.com/deronsizemore","followers_url":"https://api.github.com/users/deronsizemore/followers","following_url":"https://api.github.com/users/deronsizemore/following{/other_user}","gists_url":"https://api.github.com/users/deronsizemore/gists{/gist_id}","starred_url":"https://api.github.com/users/deronsizemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deronsizemore/subscriptions","organizations_url":"https://api.github.com/users/deronsizemore/orgs","repos_url":"https://api.github.com/users/deronsizemore/repos","events_url":"https://api.github.com/users/deronsizemore/events{/privacy}","received_events_url":"https://api.github.com/users/deronsizemore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bread-and-pepper/django-userena/labels/question","name":"question","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-22T13:02:14Z","updated_at":"2015-05-25T12:57:44Z","closed_at":null,"body":"Hi,\r\n\r\nI've got a site where Userena is working great. I'm trying to build the community and am taking the Reddit approach, i.e., creating user accounts on the fly as I submit new posts. I have an input field which accepts a string and upon submitting the post, if that user doesn't exist, then I create the user and then create the profile for that user. All of that seems to work fine. The new post submits as that new user, I'm able to visit that users profile on the front-end, I'm able to log in as them, etc. However, when I log in as that user and attempt to edit their profile all I get is a blank white page. I don't have this issue for any other user who's been created using the normal Userena workflow, i.e., signup form, click activation link in email, etc.\r\n\r\nCan anyone tell me what might be going wrong here? Here's my code that's doing the work to create a new user when a new post is submitted (sorry, still learning, this may be a mess...)\r\n\r\n\r\n    if request.POST.get('username'):\r\n        new_user = User(username=request.POST.get('username'), email='', password=make_password('password', salt=None, hasher='default'))\r\n\tnew_user.save()\r\n\tpost.submitter = new_user\r\n        profile_model = get_profile_model()\r\n        profile = profile_model.objects.create(user=new_user)"},"comment":{"url":"https://api.github.com/repos/bread-and-pepper/django-userena/issues/comments/105228300","html_url":"https://github.com/bread-and-pepper/django-userena/issues/481#issuecomment-105228300","issue_url":"https://api.github.com/repos/bread-and-pepper/django-userena/issues/481","id":105228300,"user":{"login":"deronsizemore","id":68437,"avatar_url":"https://avatars.githubusercontent.com/u/68437?v=3","gravatar_id":"","url":"https://api.github.com/users/deronsizemore","html_url":"https://github.com/deronsizemore","followers_url":"https://api.github.com/users/deronsizemore/followers","following_url":"https://api.github.com/users/deronsizemore/following{/other_user}","gists_url":"https://api.github.com/users/deronsizemore/gists{/gist_id}","starred_url":"https://api.github.com/users/deronsizemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deronsizemore/subscriptions","organizations_url":"https://api.github.com/users/deronsizemore/orgs","repos_url":"https://api.github.com/users/deronsizemore/repos","events_url":"https://api.github.com/users/deronsizemore/events{/privacy}","received_events_url":"https://api.github.com/users/deronsizemore/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T12:57:44Z","updated_at":"2015-05-25T12:57:44Z","body":"Thanks! So, unless I'm missing something, it appears that all I needed to change was this line:\r\n\r\n    password=make_password('password', salt=None, hasher='default'),\r\n\r\nfrom the Userena.objects.create_user() method.\r\n\r\nOnce changed to:\r\n\r\n    password='password'\r\n\r\nIt seems to work. So I guess it was trying to do some double encryption or something?\r\n\r\nEverything looks correct and it now allows me to log in. I just want to make sure I'm not misunderstanding you since you recommended above that I use something like User.object.create_user()?\r\n\r\nThanks. Sorry for confusion."}}