[freeside-commits] branch master updated. 172784e72f3d6bde149463ae6e85a3d6bdbc67c9

Ivan ivan at 420.am
Thu Aug 21 15:46:19 PDT 2014


The branch, master has been updated
       via  172784e72f3d6bde149463ae6e85a3d6bdbc67c9 (commit)
      from  c71b2dc296da6207c525a064d322f7153c284d4e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 172784e72f3d6bde149463ae6e85a3d6bdbc67c9
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 21 15:46:17 2014 -0700

    bootstrap users with passwords

diff --git a/FS/bin/freeside-adduser b/FS/bin/freeside-adduser
index 6bfb759..2f4e22c 100644
--- a/FS/bin/freeside-adduser
+++ b/FS/bin/freeside-adduser
@@ -9,6 +9,7 @@ my $FREESIDE_CONF = "%%%FREESIDE_CONF%%%";
 
 getopts("g:");
 my $user = shift or die &usage;
+my $password = shift;
 
 use FS::UID qw(adminsuidsetup);
 use FS::CurrentUser;
@@ -21,7 +22,7 @@ adminsuidsetup $user;
 
 my $access_user = new FS::access_user {
   'username'  => $user,
-  '_password' => '',
+  '_password' => $password,
   'first'     => 'Firstname', # $opt_f || 
   'last'      => 'Lastname',  # $opt_l || 
 };

-----------------------------------------------------------------------

Summary of changes:
 FS/bin/freeside-adduser |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list