mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-12 09:20:45 +08:00
Fix password generation with increased minimum user password length [SCI-10821] (#7664)
This commit is contained in:
parent
2452f4c239
commit
ad93fffed7
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ module UsersGenerator
|
||||||
|
|
||||||
def generate_user_password
|
def generate_user_password
|
||||||
require 'securerandom'
|
require 'securerandom'
|
||||||
SecureRandom.hex(5)
|
SecureRandom.alphanumeric(Devise.password_length.max)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_user_initials(full_name)
|
def get_user_initials(full_name)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue