X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0d597c1771dce91ee2880ef946f5a9976c6e10d1..235999b835b1b1aa5c715997bbfbf3f702cf3de1:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index d6cff0f25..da4d4c205 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -24,7 +24,7 @@ class User < ActiveRecord::Base end def encrypt_password - self.pass_crypt = Digest::MD5.hexdigest(pass_crypt) if pass_crypt_confirmation + self.pass_crypt = Digest::MD5.hexdigest(pass_crypt) unless pass_crypt_confirmation.nil? end def self.authenticate(email, passwd)