I am trying to create a model with an encrypted key so it's harder for
someone to maliciously screw over my customers.
I have the following snippet.
Field('public_gram', 'boolean', default=False),
Field('tag_name', 'list:string'),
Field('deletion_key', 'password')
)
You can see the
How did you insert "test" into database?
If you use db.tablename.insert(..., deletion_key='test') it will store it
plain text because you are bypassing validators.
You should:
1. use .validate_and_insert(...) instead
or
2. use .insert(deletion_key=db.tablename.deletion_key.validate('test'))
If
2 matches
Mail list logo