From d44bfa496eeb65cc786bb4cc9c2da12c0ef1137c Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Mon, 2 May 2011 13:10:40 +0200 Subject: [PATCH] 'admin' == params[:password] looks strange, swap order --- README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index f7ca2ce9..8bb52c24 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1463,7 +1463,7 @@ application (Rails/Ramaze/Camping/...): get('/login') { haml :login } post('/login') do - if 'admin' == params[:name] && 'admin' == params[:password] + if params[:name] == 'admin' && params[:password] == 'admin' session['user_name'] = params[:name] else redirect '/login'