Fixed error when user fails to enter correct password
Pappy would raise exceptions and continued project in clear-text when the user failed to enter the correct decryption password. Added a boolean status variable to config `crypt_success` that gets set to true when project decrypts correctly, otherwise it is set to false.
This commit is contained in:
parent
6b8861058e
commit
772e7ee507
3 changed files with 8 additions and 3 deletions
|
@ -170,6 +170,7 @@ class PappyConfig(object):
|
|||
self.crypt_dir = 'crypt'
|
||||
self.crypt_file = 'project.crypt'
|
||||
self.crypt_session = False
|
||||
self.crypt_success = False
|
||||
self.salt_file = 'project.salt'
|
||||
|
||||
def get_default_config(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue