]> git.openstreetmap.org Git - rails.git/blob - lib/auth.rb
Move trace descriptions out of success/failure sentences in emails
[rails.git] / lib / auth.rb
1 module Auth
2   @providers = ["openid"]
3   @providers << "google" if Settings.key?(:google_auth_id)
4   @providers << "facebook" if Settings.key?(:facebook_auth_id)
5   @providers << "microsoft" if Settings.key?(:microsoft_auth_id)
6   @providers << "github" if Settings.key?(:github_auth_id)
7   @providers << "wikipedia" if Settings.key?(:wikipedia_auth_id)
8   @providers.freeze
9
10   def self.providers
11     @providers
12   end
13 end