Project

General

Profile

« Previous | Next » 

Revision 0dc8fd72

Added by Amir Fefer over 8 years ago

Fixes #11174 - Don't show password placeholder when empty

View differences:

app/helpers/compute_resources_helper.rb
opts.map{|n| [number_to_human_size(n*Foreman::SIZE[:giga]), (n*Foreman::SIZE[:giga]).to_i] unless n > (max_memory / Foreman::SIZE[:giga])}.compact
end
def password_placeholder(obj)
obj.id ? "********" : ""
def password_placeholder(obj, attr = nil)
pass = obj.read_attribute(attr).present? || obj.has_attribute?(:password_hash)
pass ? "********" : ''
end
def list_datacenters(compute)

Also available in: Unified diff