public
Description: A global setting editor extension for Radiant
Homepage:
Clone URL: git://github.com/Squeegy/radiant-settings.git
saturnflyer (author)
Wed Oct 22 20:17:32 -0700 2008
commit  9b798b7af88c55a2c0c9715f52b6259c4c3c41bb
tree    4b8316548df2729c2c44480e0e18d07eecff709c
parent  528598dfdf45877133468fc061d4fded64986269
radiant-settings / lib / config_protection.rb
100644 13 lines (12 sloc) 0.189 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
module ConfigProtection
  def protected?
    key.match(/[p|P]assword/)
  end
  
  def protected_value
    if protected?
      return "********"
    else
      return value
    end
  end
end