Exemplo n.º 1
0
 /// <summary>
 /// Add an editor - used from site template to add a site editor
 /// </summary>
 public void AddEditor(string name, string pswd)
 {
     YetaWFManager.Syncify(async() => {  // super rare, so sync is OK
         using (UserDefinitionDataProvider dataProvider = new UserDefinitionDataProvider()) {
             await dataProvider.AddEditorAsync(name);
         }
         await ChangePasswordAsync(name, pswd);
     });
 }