Base solution for your next web application

Activities of "arash"

you can add any memebr to User class in core project , for ecample lets say you want to add mobile number ro user

you can

public class User : AbpUser<User> { public const string DefaultPassword = "123qwe";

    public static string CreateRandomPassword()
    {
        return Guid.NewGuid().ToString("N").Truncate(16);
    }

    public static User CreateTenantAdminUser(int tenantId, string emailAddress, string password)
    {
        return new User
        {
            TenantId = tenantId,
            UserName = AdminUserName,
            Name = AdminUserName,
            Surname = AdminUserName,
            EmailAddress = emailAddress,
            Password = new PasswordHasher().HashPassword(password)
        };
    }

    public long Mobile { get; set; }
}

}

Showing 1 to 1 of 1 entries