lib/simple_auth/authenticated.rb in di-simple_auth-0.3.0 vs lib/simple_auth/authenticated.rb in di-simple_auth-0.3.1
- old
+ new
@@ -76,10 +76,10 @@
protected
def initialize_salt
if new_record?
- self.password_salt = Digest::SHA1.hexdigest Time.now
+ self.password_salt = Digest::SHA1.hexdigest Time.now.to_s
end
end
def generate_remember_token
self.remember_token = encrypt("#{Time.now} -- #{Time.now}")
\ No newline at end of file