Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/09/10 17:19:19 (14 years ago)
Author:
bfarka
Message:

last bugfixes for project #1046

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs

    r4019 r4024  
    153153      using (DataClassesDataContext db = DatabaseUtil.createDataClassesDataContext()) {
    154154        // check database connection
    155         if (db == null) {
    156           return false;
    157         }
    158 
     155       
    159156        if (newPassword.Length < MinRequiredPasswordLength) {
    160157          return false;
    161158        }
    162 
    163         try {
    164           // try to get user
     159        if (db.HeuristicLabUsers.Count(x => x.UserName == username) > 0) {
    165160          HeuristicLabUser u = db.HeuristicLabUsers.Single(x => x.UserName == username);
    166161
     
    171166          }
    172167          return false;
    173 
    174 
    175         }
    176         catch (Exception) {
    177           return false;
    178         }
     168        } else {
     169          return false;
     170        }
     171
     172       
    179173      }
    180174    }
Note: See TracChangeset for help on using the changeset viewer.