[vhffs-dev] [2005] maybe necessary there too

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2005
Author:   gradator
Date:     2012-02-11 22:36:07 +0100 (Sat, 11 Feb 2012)
Log Message:
-----------
maybe necessary there too

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Panel/Auth.pm
    trunk/vhffs-api/src/Vhffs/User.pm

Modified: trunk/vhffs-api/src/Vhffs/Panel/Auth.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Auth.pm	2012-02-11 18:11:40 UTC (rev 2004)
+++ trunk/vhffs-api/src/Vhffs/Panel/Auth.pm	2012-02-11 21:36:07 UTC (rev 2005)
@@ -163,7 +163,7 @@
 	if( defined $user and $user->{'state'} == Vhffs::Constants::ACTIVATED )  {
 
 		# create a new password for this user
-		my $password = Vhffs::Functions::generate_random_password;
+		my $password = Vhffs::Functions::generate_random_password();
 		$user->set_password( $password );
 		$user->commit;
 

Modified: trunk/vhffs-api/src/Vhffs/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/User.pm	2012-02-11 18:11:40 UTC (rev 2004)
+++ trunk/vhffs-api/src/Vhffs/User.pm	2012-02-11 21:36:07 UTC (rev 2005)
@@ -167,7 +167,7 @@
 
 		# Insert base information
 		$admin = 0 unless (defined $admin);
-		$password = Vhffs::Functions::generate_random_password if( not defined $password or $password eq '' );
+		$password = Vhffs::Functions::generate_random_password() if( not defined $password or $password eq '' );
 		my $homedir = $main->get_config->get_datadir.'/home/'.substr( $username, 0, 1 ).'/'.substr( $username, 1, 1 ).'/'.$username;
 
 		my $sth = $dbh->prepare('INSERT INTO vhffs_users (uid, gid, username, shell, passwd, homedir, admin, firstname, lastname, address, zipcode, city, country, mail, gpg_key, note, language, theme, lastloginpanel, object_id) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0, ?, NULL, NULL, ?)');


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/