Permalink
Browse files

if "=", "=="

if @author = login(params[:username], params[:password])
  • Loading branch information...
1 parent 2bbd5c3 commit 899615f3899e34d37abace2c0bbaa5cbf17dec01 @thisiswei thisiswei committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/projects/blogger.markdown
@@ -2155,7 +2155,7 @@ class AuthorSessionsController < ApplicationController
end
def create
- if @author = login(params[:username], params[:password])
+ if @author == login(params[:username], params[:password])
redirect_back_or_to(articles_path, :message => 'Logged in successfully.')
else
flash.now[:alert] = "Login failed."

0 comments on commit 899615f

Please sign in to comment.