0
defacto created
At this and this lines we send a mail to users to inform them about their accounts. But this mail doesn't contain password if we check "Set random password" checkbox checked. This is a desired behaviour? If so, how a user would log in the system.
This fixes the issue.
if (input.SetRandomPassword)
{
var randomPassword = User.CreateRandomPassword();
user.Password = _passwordHasher.HashPassword(user, randomPassword);
input.User.Password = randomPassword;
}