Permalink
Browse files

Merge pull request #291 from thisiswei/patch-2

if  "=",   "=="
  • Loading branch information...
2 parents 2bbd5c3 + 899615f commit 8cd0672cc999fb1db4b92cf43dfb1af1a6f406aa @steveklabnik steveklabnik 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 8cd0672

Please sign in to comment.