Changeset 368


Ignore:
Timestamp:
08/18/09 02:05:13 (15 years ago)
Author:
nanardon
Message:
  • check user can be really fetch before trying to set password
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Users.pm

    r364 r368  
    4747                    my $sync = $c->model('Accounts')->sync_access; 
    4848                    my $suser = $sync->get_object('user', $username); 
    49                     if ($suser->set_password($c->req->param('passwd'))) { 
     49                    if ($suser && $suser->set_password($c->req->param('passwd'))) { 
    5050                        $c->stash->{pchanged} = 1; 
    5151                        $sync->commit; 
Note: See TracChangeset for help on using the changeset viewer.