Skip to content

Commit

Permalink
Merge pull request #291 from thisiswei/patch-2
Browse files Browse the repository at this point in the history
if  "=",   "=="
  • Loading branch information
steveklabnik committed Oct 9, 2012
2 parents 2bbd5c3 + 899615f commit 8cd0672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/projects/blogger.markdown
Expand Up @@ -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."
Expand Down

0 comments on commit 8cd0672

Please sign in to comment.