]> git.openstreetmap.org Git - rails.git/blob - lib/auth.rb
Merge pull request #2547 from bezdna/mobile-layout
[rails.git] / lib / auth.rb
1 module Auth
2   PROVIDERS = {
3     I18n.t("auth.providers.none") => "",
4     I18n.t("auth.providers.openid") => "openid"
5   }.tap do |providers|
6     providers[I18n.t("auth.providers.google")] = "google" if Settings.key?(:google_auth_id)
7     providers[I18n.t("auth.providers.facebook")] = "facebook" if Settings.key?(:facebook_auth_id)
8     providers[I18n.t("auth.providers.windowslive")] = "windowslive" if Settings.key?(:windowslive_auth_id)
9     providers[I18n.t("auth.providers.github")] = "github" if Settings.key?(:github_auth_id)
10     providers[I18n.t("auth.providers.wikipedia")] = "wikipedia" if Settings.key?(:wikipedia_auth_id)
11   end.freeze
12 end