Skip to content
Snippets Groups Projects
  1. Apr 21, 2017
  2. Apr 19, 2017
    • Shamil K Muhammed's avatar
      Add exception handler · 983f147e
      Shamil K Muhammed authored
      Catches all `psycopg2` errors for now. And returns False
      if a error is caught. Not a permanent solution, but works for now.
      983f147e
  3. Apr 18, 2017
    • Shamil K Muhammed's avatar
      Add Instructions · a3a62f96
      Shamil K Muhammed authored
      a3a62f96
    • Shamil K Muhammed's avatar
      make it a submittable package · 13805f98
      Shamil K Muhammed authored
      Haven't pushed to pypi yet. Will push after reviews.
      13805f98
    • Shamil K Muhammed's avatar
      Fix user logging in with any password · 32e3c5c1
      Shamil K Muhammed authored
      `bcrypt.hashpw` returns the password hashed with the same salt,
      not if the password matches the hash. So to check if the
      password is correct, the hash thus obtained should then be
      compared, and then verified.
      
      Also, diaspora just doesn't hash the password using bcrypt, it
      appends a "pepper" to the password and then hashes it. So, when
      checking the password, the pepper should be appended.
      32e3c5c1
  4. Apr 17, 2017
  5. Apr 16, 2017