Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Services.Authentication Prototype/Persistence/HeuristicLabUser.cs @ 4021

Last change on this file since 4021 was 4002, checked in by bfarka, 14 years ago

made struture changes in persistence classes and provider

File size: 1.0 KB
Line 
1using System;
2using System.Web.Security;
3
4namespace Persistence {
5  /// <summary>
6  /// implements the MembershipUser for HeuristicLab
7  /// </summary>
8  partial class HeuristicLabUser {
9
10    private HeuristicLabMembershipUser membershipUser;
11   
12    public HeuristicLabUser(string name, string email, string passwordQuestion, string comment) : this() {
13      _UserName = name;
14      Password = "INIT"; // just for tests
15      _LastPasswordChangedDate = System.DateTime.Today;
16      _PasswordQuestion = passwordQuestion;
17      PasswordAnswer = "";
18      Email = email;
19      Comment = comment;
20    }
21
22
23
24    public  HeuristicLabMembershipUser getMembershipUser(String providerName) {
25      if (membershipUser == null) {
26        membershipUser = new HeuristicLabMembershipUser(providerName, this.UserName, this.ID, this.Email, this.PasswordQuestion, this.Comment, true, this.Locked, new DateTime(), new DateTime(), new DateTime(), new DateTime(), new DateTime()) ;
27      }
28      return membershipUser;
29    }
30   
31  }
32}
Note: See TracBrowser for help on using the repository browser.