Permalink
Browse files

Document UserDB encryption method parameters in source code comments.

  • Loading branch information...
1 parent 93e95eb commit 1c11564db79eda0150909316881fa6b32bd3cb90 @danielbr danielbr committed Apr 2, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Vend/UserDB.pm
View
5 lib/Vend/UserDB.pm
@@ -46,6 +46,11 @@ if ($@) {
::logGlobal("SHA1 passwords disabled: $@");
}
+# The object encryption methods take three arguments: object, password, and
+# mystery meat. If called in the context of new_account(), the mystery meat
+# is the salt (which is not always used). If called in the context of
+# login(), then the mystery meat is the entire password field from the
+# database (with salt, if applicable).
my %enc_subs = (
default => sub {
my $obj = shift;

0 comments on commit 1c11564

Please sign in to comment.