[vhffs-dev] [543] Check if user is in activated state to allow password recovery

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


Revision: 543
Author:   gradator
Date:     2007-04-06 22:56:59 +0000 (Fri, 06 Apr 2007)

Log Message:
-----------
Check if user is in activated state to allow password recovery

Modified Paths:
--------------
    branches/vhffs_4.1/vhffs-panel/lost_ack.pl


Modified: branches/vhffs_4.1/vhffs-panel/lost_ack.pl
===================================================================
--- branches/vhffs_4.1/vhffs-panel/lost_ack.pl	2007-04-05 17:26:49 UTC (rev 542)
+++ branches/vhffs_4.1/vhffs-panel/lost_ack.pl	2007-04-06 22:56:59 UTC (rev 543)
@@ -53,7 +53,8 @@
 my $username = $cgi->param("username");
 my $user = Vhffs::User::get_by_username( $vhffs, $username );
 my $template;
-if ( defined $user)  
+
+if ( defined $user && $user->{'state'} == Vhffs::Constants::ACTIVATED )
 {
     #create a new password for this user
     my $plainpassword = $user->generate_password;


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