简体   繁体   中英

Omniauth provider locale

I use Devise with Omniauth to let users log in through their Facebook and Google accounts. However I have one problem...

If I want to change the name of the provider, ie. Google Oauth2 to Google . How can I achieve this on buttons and other sign in forms?

<%= link_to image_tag('facebook-login.png',:size=>'30x30'), user_omniauth_authorize_path(:facebook) %>

<%= link_to image_tag('google-plus-logo.png',:size=>'30x30'), user_omniauth_authorize_path(:google_oauth2) %>

<%= link_to image_tag('twitter-login.png',:size=>'30x30'), user_omniauth_authorize_path(:twitter) %>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM