Olti
Dean Leigh
Vifon
TackleMcClean 🏅
private void CreateUserIfNotExist(string email, string password, string? name) { var user = _userService.GetByEmail(email); if (user != null) { return; } var newUser = _userService.CreateUserWithIdentity(name ?? email, email); var userGroup = _userService.GetUserGroupByAlias("editors") as IReadOnlyUserGroup; if (userGroup != null) { newUser.AddGroup(userGroup); newUser.RawPasswordValue = ???? // how to hash password? _userService.Save(newUser); } }
RawPasswordValue
<IUser>
CreateUserWithIdentity
Ian Houghton
uros_sowa_01189
moondoan
jonroberts
CodeSharePaul
mehdimiah_
A hub and casual space for you to interact with fellow community members and learn more about Umbraco!