summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-04 10:00:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-04 10:00:53 +0200
commit2a03eac098be689fa11c371b926d3f2d8ae4c96d (patch)
tree8ae1e9e3a779ff8ea722c68885aad70f31ade3bf /bin
parent1bc1cec23206cf212573fd283d81f8e030155261 (diff)
Raps2.pm: Add pw_load_info method (pw_load for unencrypted data)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/raps24
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/raps2 b/bin/raps2
index 689ecd2..cb74009 100755
--- a/bin/raps2
+++ b/bin/raps2
@@ -141,7 +141,7 @@ sub cmd_info {
exit 2;
}
- my $key = $raps2->file_to_hash($pwfile);
+ my $key = $raps2->pw_load_info( file => $pwfile );
$raps2->ui->output( [ 'URL', $key->{url} ], [ 'Login', $key->{login} ], );
return;
@@ -151,7 +151,7 @@ sub cmd_list {
my @files = read_dir( data_home('raps2') );
for my $file ( sort @files ) {
- my $key = $raps2->file_to_hash( data_files("raps2/${file}") );
+ my $key = $raps2->pw_load_info( name => $file );
$raps2->ui->list(
[ 'Account', $file ],
[ 'Login', $key->{login} ],