FIX: RANDOM_PASSWORD not working rake admin:create
We regressed behavior of this env var which enable admin account creation with a random password
This commit is contained in:
parent
d27ece9ded
commit
a14313e9d0
|
@ -65,9 +65,10 @@ task "admin:create" => :environment do
|
||||||
else
|
else
|
||||||
password = ask("Password: ") { |q| q.echo = false }
|
password = ask("Password: ") { |q| q.echo = false }
|
||||||
password_confirmation = ask("Repeat password: ") { |q| q.echo = false }
|
password_confirmation = ask("Repeat password: ") { |q| q.echo = false }
|
||||||
passwords_match = password == password_confirmation
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
passwords_match = password == password_confirmation
|
||||||
|
|
||||||
say("Passwords don't match, try again...") unless passwords_match
|
say("Passwords don't match, try again...") unless passwords_match
|
||||||
end while !passwords_match
|
end while !passwords_match
|
||||||
admin.password = password
|
admin.password = password
|
||||||
|
|
Loading…
Reference in New Issue