duritong/trocla — pull request #2 by icy (2012-05-09 10:42:23+00:00)
Title: Check the format when set password at command line

check if format is valid before creating/seting/...

as the old code only checks if the format name is empty, we can set any
kind of key/value in the database. for example, this command will work
without any error reported:

trocla set someuser strange_format

I replace the method miss_format by check_format that should be invoked
before any thing related to format.