summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-04 13:22:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-04 13:22:36 +0200
commit2d2355dfd840a100a50b3d349be5d9c88d6de2f8 (patch)
tree5eefb3949c3acb10c1d2519cfd2d61096fec777e /lib
parentafebe00e35d17c3b2de1317be73fd9c89f1776b5 (diff)
More advanced App::Raps2 tests
Diffstat (limited to 'lib')
-rw-r--r--lib/App/Raps2.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/App/Raps2.pm b/lib/App/Raps2.pm
index 878ba9d..d515548 100644
--- a/lib/App/Raps2.pm
+++ b/lib/App/Raps2.pm
@@ -141,8 +141,10 @@ sub ui {
sub pw_save {
my ( $self, %data ) = @_;
- $data{file} //= $self->{xdg_data} . "/$data{name}";
- $data{salt} //= $self->pw->create_salt();
+ $data{file} //= $self->{xdg_data} . "/$data{name}";
+ $data{login} //= q{};
+ $data{salt} //= $self->pw->create_salt();
+ $data{url} //= q{};
my $pass_hash = $self->pw->encrypt( $data{password}, $data{salt} );
my $extra_hash = (