AniX / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

Documentation mismatch in webapp2_extras.security.generate_password_hash #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The documentation is incorrect for:
webapp2_extras.security.generate_password_hash

http://code.google.com/p/webapp-improved/source/browse/webapp2_extras/security.p
y#98

The docstring states:
Returns a formatted hashed string that looks like this:
method$salt$hash

The code says:
return '%s$%s$%s' % (hashval, method, salt)

In other words, it is method$salt$hash versus hash$method$salt

Original issue reported on code.google.com by da...@metacircle.net on 26 Oct 2012 at 8:57

GoogleCodeExporter commented 9 years ago
I +1 this... Took me a while to debug because of wrong documentation.

Please fix

Original comment by nicholas...@gmail.com on 19 Nov 2013 at 7:45