Skip to content

Commit

Permalink
update ferret_server settings
Browse files Browse the repository at this point in the history
  • Loading branch information
poojagupta committed Jul 14, 2009
1 parent cf7fbbd commit dc4f5a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/controllers/fb_connect_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def connect
if @u && !@u.email_verified
reset_session
flash[:error] = 'Your email address has not yet been confirmed.'
return redirect_back_or_default home_path
return redirect_back_or_default(home_path)
elsif @u && @u.email_verified
flash[:notice] = "Hello #{@u.full_name}"
return redirect_back_or_default profile_path(@u.profile)
return redirect_back_or_default(profile_path(@u.profile))
else
return redirect_to signup_path.add_param({:fb_user => true})
return redirect_to(signup_path.add_param({:fb_user => true}))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def request_email_change!(new_email)

# before filter
def encrypt_password
return if password.blank? && is_facebook_user?
return if password.blank? || is_facebook_user?
self.salt = Digest::SHA1.hexdigest("--#{Time.now.to_s}--#{login}--") if
new_record? || @forgot
self.crypted_password = encrypt(password)
Expand Down
2 changes: 1 addition & 1 deletion config/ferret_server.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
d___evelopment:
port: 12005
production:
p_________________roduction:
port: 10050
pid_file: log/ferret.pid

0 comments on commit dc4f5a5

Please sign in to comment.