Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/10 16:30:24 (14 years ago)
Author:
hmayr
Message:

following changes (#1046):

  • extended HeuristicLabUser.cs (additional methods)
  • implemented a 2. demo method for HeuristicLabMembershipProvider.cs
  • recreated two test classes in English language
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/Persistence/HeuristicLabUser.cs

    r3943 r3948  
    7272    }
    7373
    74     //
    75     // Summary:
    76     //     Gets the password for the membership user from the membership data store.
    77     //
    78     // Parameters:
    79     //   passwordAnswer:
    80     //     The password answer for the membership user.
    81     //
    82     // Returns:
    83     //     The password for the membership user.
    8474    public override string GetPassword(string passwordAnswer) {
    85       throw new NotImplementedException();
     75      if (PasswordAnswer == passwordAnswer) {
     76        return Password;
     77      } else {
     78        return "";
     79      }
    8680    }
    8781
    88     //
    89     // Summary:
    90     //     Resets a user's password to a new, automatically generated password.
    91     //
    92     // Returns:
    93     //     The new password for the membership user.
    9482    public override string ResetPassword() {
    95       throw new NotImplementedException();
     83      Password = "INIT";
     84      return Password;
    9685    }
    9786
    98     //
    99     // Summary:
    100     //     Resets a user's password to a new, automatically generated password.
    101     //
    102     // Parameters:
    103     //   passwordAnswer:
    104     //     The password answer for the membership user.
    105     //
    106     // Returns:
    107     //     The new password for the membership user.
    10887    public override string ResetPassword(string passwordAnswer) {
    109       throw new NotImplementedException();
     88      if (PasswordAnswer == passwordAnswer) {
     89        Password = "INIT";
     90        return Password;
     91      } else {
     92        return "";
     93      }
    11094    }
    11195
Note: See TracChangeset for help on using the changeset viewer.