-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identity Users 'Set Password' action's 'Generate Random Password' button does not obey Password complexity settings #16852
Milestone
Comments
change the generateRandomPasswordButton.click(function () {
var requiredLength = abp.setting.getInt('Abp.Identity.Password.RequiredLength') ?? 8;
var requiredUniqueChars = abp.setting.getInt('Abp.Identity.Password.RequiredUniqueChars') ?? 1;
var password = '';
password += pickLetters(specials, requiredUniqueChars);
password += pickLetters(lowercase, 1);
password += pickLetters(uppercase, 1);
password += pickLetters(numbers, 1);
password += pickLetters(all, requiredLength - requiredUniqueChars, requiredLength);
password = shuffleString(password);
$newPasswordInput.val(password);
$newPasswordInput.attr("type", "text");
let icon = $(this).find("i");
if (icon) {
passwordVisibilityButton.find("i").removeClass("fa-eye-slash").addClass("fa-eye");
}
}); |
We can try that. |
Hi. Just wanted to get a nudge on this. It feels like this behaviour should be baked into the framework. Is this going to be added? Cheers. |
hi @mkincyan I will check this. : ) |
This will be fixed on 7.4. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Description
As a user
I want the randomly generated password used when setting the password of a user to obey the password complexity settings defined relating to that user
So that I'm given a valid password that I can use.
Reproduction Steps
Steps to reproduce:
Reproducible on ABP commercial demo on 15/6/23
Expected behavior
The randomly generated password is such that it is valid to be used.
Actual behavior
Validation error below the password to say 'This field must be a string or array type with a minimum length of 12.'
Regression?
No response
Known Workarounds
No response
Version
7.3.0.0
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: