This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Developer login should ask for email address only.

  • Loading branch information...
hmans committed Mar 8, 2012
1 parent d7de612 commit 32e3f7e818a029f14465165af699c2cf527065e8
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/schnitzelpress/actions/auth.rb
@@ -7,8 +7,12 @@ module Auth
extend ActiveSupport::Concern
included do
- use OmniAuth::Strategies::BrowserID
- use OmniAuth::Strategies::Developer if Schnitzelpress.env.development?
+ use OmniAuth::Builder do
+ provider :browser_id
+ if Schnitzelpress.env.development?
+ provider :developer , :fields => [:email], :uid_field => :email
+ end
+ end
post '/auth/:provider/callback' do
auth = request.env['omniauth.auth']

0 comments on commit 32e3f7e

Please sign in to comment.