summaryrefslogtreecommitdiff
path: root/fs_selfservice/fs_passwd_test
diff options
context:
space:
mode:
authorivan <ivan>2002-07-11 13:52:39 +0000
committerivan <ivan>2002-07-11 13:52:39 +0000
commitb58821fcd50e52ae726834ef3863b85ed293379f (patch)
tree490d7504166c6028128706b98836bcbc3bca6759 /fs_selfservice/fs_passwd_test
parent768935cdc63dd2071941a26959a710bce3ba1de3 (diff)
finally working async framework
Diffstat (limited to 'fs_selfservice/fs_passwd_test')
-rwxr-xr-xfs_selfservice/fs_passwd_test14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs_selfservice/fs_passwd_test b/fs_selfservice/fs_passwd_test
new file mode 100755
index 000000000..77782e651
--- /dev/null
+++ b/fs_selfservice/fs_passwd_test
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -w
+
+use strict;
+use FS::SelfService qw(passwd);
+
+my $error = passwd(
+ 'username' => 'ivan',
+ 'old_password' => 'heyhoo',
+ 'new_password' => 'haloo',
+);
+
+die $error if $error;
+
+print "password changed sucessfully\n";