Commits

Donald Stufft  committed a22ce56

If we delete the OTK before we fetch a user by it, we'll get a blank user and activation will fail

  • Participants
  • Parent commits 13c71b2

Comments (0)

Files changed (1)

                               heading='User registration')
                     return
                 # OK, delete the key
+                user = self.store.get_user_by_otk(info['otk'])
                 self.store.delete_otk(info['otk'])
-                user = self.store.get_user_by_otk(info['otk'])
                 self.store.activate_user(user)
                 self.write_template('message.pt', title='Registration complete',
                                     message='You are now registered.',