Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "defacto"

Sure dude:) Here it is.

Can i take this responsibility?:)

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;
}
Showing 11 to 13 of 13 entries