public string RegisterUser(string username, string password, string confirmPassword) { if (Data.TheUserWhichHasCurrentlyLoggedIntoTheIssueTrackingSystem == null) return string.Format("There is already a logged in user"); if (password != confirmPassword) return string.Format("The provided passwords do not match", username); if (Data.users_dict.ContainsKey(username)) return string.Format("A user with username {0} already exists", username); var user = new buhtig.Stuff.Benutzer(username, password); Data.users_dict.Add(username, user); return string.Format("User {0} registered successfully", username); }
public string RegisterUser(string username, string password, string confirmPassword) { if (Data.TheUserWhichHasCurrentlyLoggedIntoTheIssueTrackingSystem == null) { return(string.Format("There is already a logged in user")); } if (password != confirmPassword) { return(string.Format("The provided passwords do not match", username)); } if (Data.users_dict.ContainsKey(username)) { return(string.Format("A user with username {0} already exists", username)); } var user = new buhtig.Stuff.Benutzer(username, password); Data.users_dict.Add(username, user); return(string.Format("User {0} registered successfully", username)); }
public Kommentar(Benutzer author, string text) { this.Author = author; this.Text = text; }