Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3966


Ignore:
Timestamp:
06/26/10 16:11:58 (14 years ago)
Author:
jhaider
Message:

added regions for vars and Properties, implemented some Properties (#1046)

File:
1 edited

Legend:

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

    r3965 r3966  
    1414  class HeuristicLabMembershipProvider : MembershipProvider {
    1515
     16    #region variables
     17
    1618    private string pApplicationName;
    1719    private bool pEnablePasswordReset;
     
    2426    private MembershipPasswordFormat pPasswordFormat = MembershipPasswordFormat.Clear;
    2527
     28    #endregion
     29
     30    #region properties
     31
     32    public override string ApplicationName {
     33      get { return pApplicationName; }
     34      set { pApplicationName = value; }
     35    }
     36
     37    public override bool EnablePasswordReset {
     38      get { return pEnablePasswordReset; }
     39    }
     40
     41    public override bool EnablePasswordRetrieval {
     42      get { return pEnablePasswordRetrieval; }
     43    }
     44
     45    public override int MaxInvalidPasswordAttempts {
     46      get { return pMaxInvalidPasswordAttempts; }
     47    }
     48
     49    public override int MinRequiredNonAlphanumericCharacters {
     50      get { return 0; }
     51    }
     52
     53    public override int MinRequiredPasswordLength {
     54      get { return pMinRequiredPasswordLength; }
     55    }
     56
     57    public override int PasswordAttemptWindow {
     58      get { return pPasswordAttemptWindow; }
     59    }
     60
     61    public override MembershipPasswordFormat PasswordFormat {
     62      get { return pPasswordFormat; }
     63    }
     64
     65    public override string PasswordStrengthRegularExpression {
     66      get { return string.Empty; }
     67    }
     68
     69    public override bool RequiresQuestionAndAnswer {
     70      get { return pRequiresQuestionAndAnswer; }
     71    }
     72
     73    public override bool RequiresUniqueEmail {
     74      get { return pRequiresUniqueEmail; }
     75    }
     76
     77    #endregion
     78
    2679    public override void Initialize(string name, NameValueCollection config) {
    2780      //
     
    72125    }
    73126
    74     public override string ApplicationName {
    75       get { return pApplicationName; }
    76       set { pApplicationName = value; }
    77     }
     127
    78128
    79129    public override bool ChangePassword(string username, string oldPassword, string newPassword) {
     
    189239    }
    190240
    191     public override bool EnablePasswordReset {
    192       get { throw new NotImplementedException(); }
    193     }
    194 
    195     public override bool EnablePasswordRetrieval {
    196       get { throw new NotImplementedException(); }
    197     }
     241
    198242
    199243    public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords) {
     
    230274    }
    231275
    232     public override int MaxInvalidPasswordAttempts {
    233       get { throw new NotImplementedException(); }
    234     }
    235 
    236     public override int MinRequiredNonAlphanumericCharacters {
    237       get { throw new NotImplementedException(); }
    238     }
    239 
    240     public override int MinRequiredPasswordLength {
    241       get { throw new NotImplementedException(); }
    242     }
    243 
    244     public override int PasswordAttemptWindow {
    245       get { throw new NotImplementedException(); }
    246     }
    247 
    248     public override MembershipPasswordFormat PasswordFormat {
    249       get { return pPasswordFormat; }
    250     }
    251 
    252     public override string PasswordStrengthRegularExpression {
    253       get { throw new NotImplementedException(); }
    254     }
    255 
    256     public override bool RequiresQuestionAndAnswer {
    257       get { throw new NotImplementedException(); }
    258     }
    259 
    260     public override bool RequiresUniqueEmail {
    261       get { throw new NotImplementedException(); }
    262     }
     276
    263277
    264278    public override string ResetPassword(string username, string answer) {
Note: See TracChangeset for help on using the changeset viewer.