Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/30/09 16:58:54 (15 years ago)
Author:
svonolfe
Message:

Fixed some bugs in the Security DAL (#597)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Security.ADODataAccess/3.2/HLUserAdapter.cs

    r1656 r1729  
    3333      if (user != null && row != null) {
    3434        row.PermissionOwnerId = user.Id;
     35        row.Login = user.Login;
     36        row.MailAddress = user.MailAddress;
     37        row.Password = user.Password;
    3538
    3639        return row;
     
    99102        PermOwnerAdapter.GetByName(name);
    100103
    101       return GetById(permOwner.Id);
     104      if (permOwner != null)
     105        return GetById(permOwner.Id);
     106      else
     107        return null;
     108    }
     109
     110    public User GetByLogin(string login) {
     111      return base.FindSingle(
     112        delegate() {
     113          return Adapter.GetDataByLogin(login);
     114        });
    102115    }
    103116
    104117    #endregion
     118  }
    105119}
    106 }
Note: See TracChangeset for help on using the changeset viewer.