]> snippets.scripts.mit.edu Git - Scripts/git/.git/commit
Set a password of UNUSABLE_PASSWORD
authorAlex Dehnert <adehnert@mit.edu>
Mon, 24 Dec 2012 08:28:00 +0000 (03:28 -0500)
committerMIT Association of Student Activities <asa@mit.edu>
Mon, 24 Dec 2012 08:28:00 +0000 (03:28 -0500)
commitc6b6a6b9fa3c428729b369296476b6839a04dbf7
tree4a786f21c0d15b33928595e35e51cc5b9b103f2a
parentbe3f03e7d8e7f732ec7985939679c921a9aaf8c4
Set a password of UNUSABLE_PASSWORD

* Changes ScriptsRemoteUserBackend's configure_user method to set the default
  password to UNUSABLE_PASSWORD instead of ScriptsSSLAuth. UNUSABLE_PASSWORD
  displays in the admin as "Password: None", instead of an ugly error message.
  This should fix "Unknown password hashing algorithm" errors for users
  correctly created in the future. (ASA-#132)

* Adds a migration to change current users with passwords of "" or
  "ScriptsSSLAuth" to a password of UNUSABLE_PASSWORD ("!"). This will fix
  ASA-#132 and the symptoms of ASA-#133 for already-existent users.
__init__.py