Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #291 from thisiswei/patch-2

if  "=",   "=="
  • Loading branch information...
commit 8cd0672cc999fb1db4b92cf43dfb1af1a6f406aa 2 parents 2bbd5c3 + 899615f
Steve Klabnik steveklabnik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  source/projects/blogger.markdown
2  source/projects/blogger.markdown
View
@@ -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."
Please sign in to comment.
Something went wrong with that request. Please try again.