diff options
author | Azul <azul@leap.se> | 2012-06-27 15:26:55 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-06-27 15:26:55 +0200 |
commit | 424c80fde151d4507cd34aaf8f116016df405c8a (patch) | |
tree | dd8c54b321a53eadb5c7e5525bfd8d81b8789f8f /example/http-srp.rb | |
parent | 95df478b7d3f62e2893499aa7a801b0cacb19dcd (diff) |
adjusted user model to use srp
Diffstat (limited to 'example/http-srp.rb')
-rw-r--r-- | example/http-srp.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/example/http-srp.rb b/example/http-srp.rb index 4c34130..b2de7bf 100644 --- a/example/http-srp.rb +++ b/example/http-srp.rb @@ -43,17 +43,6 @@ post '/authenticate/' do erb :authenticate, :layout => false, :content_type => :xml end -post '/login' do - Log.log(:login, params) - @user = User.current - if @user.login!(params) - Log.log(:response, "Login succeeded") - else - Log.log(:response, "Login failed") - end - redirect '/' -end - get '/verify' do erb :verify end |