mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
fix Sinatra as middleware example in Spanish readme
This commit is contained in:
parent
9c666ee1ab
commit
e67c5ae594
1 changed files with 1 additions and 1 deletions
|
@ -1531,7 +1531,7 @@ aplicación basada en Rack (Rails/Ramaze/Camping/...):
|
|||
get('/login') { haml :login }
|
||||
|
||||
post('/login') do
|
||||
if params[:nombre] = 'admin' and params[:password] = 'admin'
|
||||
if params[:nombre] == 'admin' && params[:password] == 'admin'
|
||||
session['nombre_de_usuario'] = params[:nombre]
|
||||
else
|
||||
redirect '/login'
|
||||
|
|
Loading…
Reference in a new issue