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