Comments (7)
For the record I've always though user should support first/last names. Only being on addresses drives me nuts.
from solidus_social.
Seems like a decent feature, though I'm not sure about what the best way to implement that would be as the only place names are currently stored is on addresses. Perhaps it might be desirable to add a hook so that developers could grab that info and store it where ever made sense in their schema?
from solidus_social.
Go for it. I personally believe first and last names are wrong in many ways (People have a name, and that's it, really), but I do understand there's a lot of use for this. 👍
from solidus_social.
http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
from solidus_social.
Thank you all for the great feedback. I feel much like Clarke in this regard, the lack of a name of any kind (first,last,singular) on user drives me nuts. I will implement it so that if your User responds to first_name/firstname or last_name/lastname then we will save the returned info to that user.
from solidus_social.
This is my current workaround:
-
Add the following in an initializer:
class SolidusSocialConfig < Rails::Application config.after_initialize do Devise.omniauth_configs[:facebook]&.strategy&.merge!({ scope: 'email', info_fields: 'email,name,first_name,last_name' }) end end
Then,
omniauth-facebook
will request forfirst_name
andlast_name
and you can get them inauth_hash
. -
Override method
omniauth_callback
inSpree::OmniauthCallbacksController
to include your own logic.
from solidus_social.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from solidus_social.
Related Issues (20)
- Remove omniauth-facebook HOT 2
- Solidus v4 compatibility? HOT 3
- ::Spree::UserRegistrationsController.prepend self - not found on install HOT 6
- Apple Assistance
- Error uninitialized constant OmniauthCallbacksController HOT 11
- Translation missing because scoped weirdly: en.authentications.spree.destroy HOT 2
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot couldn't find a Gemfile-local for this project
- Guest cart replaces authenticated with its content HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Error while integrating Twitter log-in HOT 1
- Twitter Login OAuth::Unauthorized (400 Bad Request) HOT 4
- Prepare Solidus Social for Solidus 3.0 HOT 1
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Facebook login not working for me HOT 1
- Navigation to configuration not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solidus_social.