sfMelodyPlugin and sfGuardUserProfile#49
Open
madesst wants to merge 14 commits intochok:masterfrom
madesst:master
Open
sfMelodyPlugin and sfGuardUserProfile#49madesst wants to merge 14 commits intochok:masterfrom madesst:master
madesst wants to merge 14 commits intochok:masterfrom
madesst:master
Conversation
Contributor
Author
|
I've commited improvments in sfMelodyUserFactory, BasesfMelodyActions for working with register_redirect: true. Do you need any comments about this pull request? |
Owner
There was a problem hiding this comment.
it could be a problem when not defined
Owner
|
Hi, At the beginning, I wanted to add the possibility the specify a path linked to the user class in the config and never done it. I think your solution can be usefull for propel guy so we can merge as a first shot. And then when me or someone else change the process we can merge the next version... :p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Look at this http://forum.symfony-project.org/viewtopic.php?f=12&t=33956
I have same trouble. In propel version of sfGuardPlugin, there aren't such fields as first_name or email_adress.
Normally i use sf_guard_user_profile table for such data:
App.yml:
But sfMelodyPlugin not work with the profile, plugin try to use setters of sfGuardUser object only. There is some patch of that problem. Some key in app.yml explains to sfMelody to look for profile setters if it cant't find in sfGuardUser.
For example, my app.yml.
all: sf_guard_plugin: profile_class: sfGuardUserProfile profile_field_name: sf_guard_user_id melody: use_profile: true ..... first_name: call: me path: first_name last_name: call: me path: last_name nick: call: me path: username ext_id: call: me path: id ext_link: call: me path: linkAfter registration i get 2 new tuples in DB:
select * from sf_guard_user; id | username | algorithm | created_at | last_login | is_active | is_super_admin | email ----+---------------------+-----------+---------------------+---------------------+-----------+----------------+------------------- 19 | Facebook_1464279882 | sha1 | 2012-02-08 13:15:14 | 2012-02-08 13:15:14 | t | f | madesst@gmail.com (1 row) select * from sf_guard_user_profile; sf_guard_user_id | first_name | last_name | nick | ext_id | ext_link ------------------+------------+-----------+---------+------------+--------------------------------- 19 | Maksim | Ustinov | madesst | 1464279882 | http://www.facebook.com/madesst (1 row)Code is very stupid, but it works for now.
I hope this will be useful.