- Timestamp:
- 01/19/16 11:14:30 (8 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/MANIFEST
r1632 r1641 34 34 lib/LATMOS/Accounts/Web/Controller/NetZones.pm 35 35 lib/LATMOS/Accounts/Web/Controller/Remote.pm 36 lib/LATMOS/Accounts/Web/Controller/Remote/AskPwReset.pm 36 37 lib/LATMOS/Accounts/Web/Controller/Remote/Listing.pm 37 38 lib/LATMOS/Accounts/Web/Controller/Remote/Obj.pm 39 lib/LATMOS/Accounts/Web/Controller/Remote/PwReset.pm 38 40 lib/LATMOS/Accounts/Web/Controller/Remote/Search.pm 39 41 lib/LATMOS/Accounts/Web/Controller/Request.pm … … 294 296 t/controller_Logout.t 295 297 t/controller_NetHost.t 298 t/controller_Remote-AskPwReset.t 296 299 t/controller_Remote-Listing.t 297 300 t/controller_Remote-Obj.t 301 t/controller_Remote-PwReset.t 298 302 t/controller_Remote-Search.t 299 303 t/controller_Remote.t -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r1640 r1641 1561 1561 $self->id, 1562 1562 ); 1563 return 1; 1564 } else { 1565 return; 1563 1566 } 1567 1564 1568 } 1565 1569 … … 1587 1591 } 1588 1592 1593 =head2 DeletePasswordId($id) 1594 1595 Delete password reset C<$id> and all expired request 1596 1597 =cut 1598 1599 sub DeletePasswordId { 1600 my ($self, $id) = @_; 1601 1602 my $sth = $self->base->db->prepare_cached(q{ 1603 DELETE FROM passwordreset WHERE 1604 "user" = ? AND (id = ? or "create" < now() - '1 days'::interval) 1605 }); 1606 1607 $sth->execute($self->id, $id); 1608 } 1609 1589 1610 1; 1590 1611
Note: See TracChangeset
for help on using the changeset viewer.