#6574 openid login doesn't work - AttributeError on password

unreleased
invalid
nobody
None
General
nobody
2015-02-09
2013-08-19
No
File '/var/local/allura/Allura/allura/controllers/auth.py', line 123 in login_process_oid
  c.user = oid_obj.claimed_by_user()
File '/var/local/allura/Allura/allura/model/auth.py', line 265 in claimed_by_user
  make_project=False)
File '/var/local/allura/Allura/allura/model/auth.py', line 609 in register
  user = auth_provider.register_user(doc)
File '/var/local/allura/Allura/allura/lib/plugin.py', line 213 in register_user
  u.set_password(user_doc['password'])
File '/var/local/allura/Allura/allura/model/auth.py', line 682 in set_password
  self, self.password, new_password)
File '/var/local/allura/Allura/allura/lib/plugin.py', line 239 in set_password
  user.password = self._encode_password(new_password)
File '/var/local/allura/Allura/allura/lib/plugin.py', line 246 in _encode_password
  hashpass = sha256(salt + password.encode('utf-8')).digest()
AttributeError: 'NoneType' object has no attribute 'encode'

Related

Tickets: #7013

Discussion

  • Dave Brondsema

    Dave Brondsema - 2014-02-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     ~~~~
     File '/var/local/allura/Allura/allura/controllers/auth.py', line 123 in login_process_oid
       c.user = oid_obj.claimed_by_user()
    
    • status: open --> invalid
    • Milestone: forge-backlog --> forge-feb-21
     

Log in to post a comment.