Changeset 317 for branches/stable
- Timestamp:
- 04/25/12 17:33:53 (13 years ago)
- Location:
- branches/stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/DNSDB.pm
r263 r317 32 32 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); 33 33 34 $VERSION = 0.1; ##VERSION##34 $VERSION = 1.0.1; ##VERSION## 35 35 @ISA = qw(Exporter); 36 36 @EXPORT_OK = qw( -
branches/stable/Makefile
r263 r317 3 3 4 4 PKGNAME=dnsadmin 5 VERSION=1.0 5 VERSION=1.0.1 6 6 RELEASE=1 7 7 -
branches/stable/dns.cgi
r263 r317 217 217 if ($webvar{action} eq 'login') { 218 218 # Snag ACL/permissions here too 219 my $sth = $dbh->prepare("SELECT user_id,group_id,password,firstname,lastname FROM users WHERE username=?");219 my $sth = $dbh->prepare("SELECT user_id,group_id,password,firstname,lastname,status FROM users WHERE username=?"); 220 220 $sth->execute($webvar{username}); 221 221 222 if (my ($uid,$gid,$pass,$fname,$lname ) = $sth->fetchrow_array) {222 if (my ($uid,$gid,$pass,$fname,$lname,$status) = $sth->fetchrow_array) { 223 223 $webvar{password} = '' if !$webvar{password}; 224 225 if ($pass =~ m|^\$1\$([A-Za-z0-9/.]+)\$|) { 224 if (!$status) { 225 $webvar{loginfailed} = 1; 226 } elsif ($pass =~ m|^\$1\$([A-Za-z0-9/.]+)\$|) { 226 227 # native passwords (crypt-md5) 227 228 $webvar{loginfailed} = 1 if $pass ne unix_md5_crypt($webvar{password},$1);
Note:
See TracChangeset
for help on using the changeset viewer.