Fix user creation with stronger minimum password requirements:q
This commit is contained in:
parent
26b9577719
commit
64883faa6e
|
@ -6,6 +6,7 @@ v 8.10.0 (unreleased)
|
||||||
- Fix MR-auto-close text added to description. !4836
|
- Fix MR-auto-close text added to description. !4836
|
||||||
- Fix pagination when sorting by columns with lots of ties (like priority)
|
- Fix pagination when sorting by columns with lots of ties (like priority)
|
||||||
- Implement Subresource Integrity for CSS and JavaScript assets. This prevents malicious assets from loading in the case of a CDN compromise.
|
- Implement Subresource Integrity for CSS and JavaScript assets. This prevents malicious assets from loading in the case of a CDN compromise.
|
||||||
|
- Fix user creation with stronger minimum password requirements !4054 (nathan-pmt)
|
||||||
|
|
||||||
v 8.9.1
|
v 8.9.1
|
||||||
- Fix GitLab project import issues related to notes and builds
|
- Fix GitLab project import issues related to notes and builds
|
||||||
|
|
|
@ -308,7 +308,7 @@ class User < ActiveRecord::Base
|
||||||
|
|
||||||
def generate_password
|
def generate_password
|
||||||
if self.force_random_password
|
if self.force_random_password
|
||||||
self.password = self.password_confirmation = Devise.friendly_token.first(8)
|
self.password = self.password_confirmation = Devise.friendly_token.first(Devise.password_length.min)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue