Project

General

Profile

« Previous | Next » 

Revision c257c9f9

Added by Marc Dequènes over 15 years ago

  • ID c257c9f9020fb593f9a203e7a7406f2c958f4627

[fix] wrong method call

View differences:

app/models/user.rb
def password=(pass)
@password = pass
self.salt = self.class.random_string(10) if not self.salt?
self.salt = self.class.random_string(10) if not self.salt
self.hashed_password = self.class.encrypt(@password, self.salt)
end

Also available in: Unified diff