Support disabling OpenID authentication
authorMarius Mathiesen <marius@gitorious.org>
Mon, 11 Feb 2013 12:53:51 +0000 (13:53 +0100)
committerMarius Mathiesen <marius@gitorious.org>
Mon, 11 Feb 2013 12:53:51 +0000 (13:53 +0100)
commit4beb75208146dbf70926af2414be58e956725dfb
treeca55779e6430e15b639417e05c3ee0e0246c3037
parent2f675dd552075a1ba075a9a6cb604ac6cee558e5
Support disabling OpenID authentication

This is achieved by adding to config/authentication.yml:
  enable_openid: false

In doing so, the openid login form won't be displayed, and the
sessions controller refuses OpenID authentication
app/controllers/sessions_controller.rb
app/views/sessions/new.html.erb
config/authentication.sample.yml
lib/gitorious/authentication/configuration.rb
test/functional/sessions_controller_test.rb
test/unit/lib/gitorious/authentication/configuration_test.rb