Base solution for your next web application
Open Closed

Sending password to created or updated users in mail #6135


User avatar
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;
}

4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    I will fix it, thanks for feedback.

  • User Avatar
    0
    defacto created

    Can i take this responsibility?:)

  • User Avatar
    0
    maliming created
    Support Team

    Waiting for your PR :) https://github.com/aspnetzero/aspnet-zero-core/pulls

  • User Avatar
    0
    defacto created

    Sure dude:) Here it is.