Beispiel #1
0
 public User RenameUser(User gitLabUser, string userName, string displayName, string email)
 {
     try {
         var userClient = this.client.Users;
         var userUpsert = new UserUpsert()
         {
             Username = userName, Name = displayName, Email = email, Password = new Guid().ToString(), ProjectsLimit = 10, Provider = null, ExternUid = null
         };
         return(userClient.Update(gitLabUser.Id, userUpsert));
     }
     catch (Exception ex) {
         Log.Error($"Can`t change user {userName} email {email}", ex);
         throw;
     }
 }
Beispiel #2
0
 public User RenameUser(User gitLabUser, string userName, string displayName, string email)
 {
     try {
         var userClient = this.client.Users;
         var userUpsert = new UserUpsert() { Username = userName, Name = displayName, Email = email, Password = new Guid().ToString() };
         return userClient.Update(gitLabUser.Id, userUpsert);
     }
     catch (Exception ex) {
         Log.Error($"Can`t change user {userName} email {email}", ex);
         throw;
     }
 }