Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Passwords hashes on User class #211

Open
Winnetou opened this issue Nov 23, 2014 · 0 comments
Open

Passwords hashes on User class #211

Winnetou opened this issue Nov 23, 2014 · 0 comments

Comments

@Winnetou
Copy link
Contributor

Consider:
In [1]: from mongokit.auth import User
In [2]: myuser = User()
In [3]: myuser.password = 'secret'
In [4]: myuser.password
Out[5]: u'46d7d2b9ad86c80e9721f7ff7a1c4956166167b3d7ed2bf1cf76a2dbb8e3a101a204b9d1337a64c0'
Works as expected.
But:
In [6]: myseconduser = User()
In [7]: myseconduser['password'] = 'moresecret'
In [8]: myseconduser['password']
Out [8]: 'moresecret'
After I set use_dot_notation to True:
In [9]: myseconduser.user.password = 'topsecret'
In [10]: myseconduser.user.password
Out [10]: 'topsecret'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant