Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

if "=", "=="

if @author = login(params[:username], params[:password])
  • Loading branch information...
commit 899615f3899e34d37abace2c0bbaa5cbf17dec01 1 parent 2bbd5c3
wei thisiswei 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.