Mercurial > hg > soundsoftware-site
diff app/models/user.rb @ 929:5f33065ddc4b redmine-1.3
Update to Redmine SVN rev 9414 on 1.3-stable branch
author | Chris Cannam |
---|---|
date | Wed, 27 Jun 2012 14:54:18 +0100 |
parents | cbb26bc654de |
children | ec1c49528f36 433d4f72a19b |
line wrap: on
line diff
--- a/app/models/user.rb Fri Feb 24 19:09:32 2012 +0000 +++ b/app/models/user.rb Wed Jun 27 14:54:18 2012 +0100 @@ -343,6 +343,11 @@ find(:first, :conditions => ["LOWER(mail) = ?", mail.to_s.downcase]) end + # Returns true if the default admin account can no longer be used + def self.default_admin_account_changed? + !User.active.find_by_login("admin").try(:check_password?, "admin") + end + def to_s name end