Closed (duplicate)
Project:
OpenID Content Profile Field
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Dec 2009 at 09:56 UTC
Updated:
4 May 2011 at 20:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
merilainen commentedMore precisely the database call which is checking if a profile type exists, returns zero always for me.
I made a PHP page with this code:
And I get 0 as result with admin and test user.
I changed the if-statement to this:
and now the user won't get a new profile on each login. This is easy to patch if it looks ok.
Comment #2
merilainen commentedThe problem with my own solution above is that it won't update the profile if user already has a profile. So it can be used only when user registers for an account for the first time. But I really need to update the profiles when user logs in. So I changed the code to work if user has one profile. I have no idea what to do if user has many profiles in the site, which is quite unlikely in my opinion.
Anyway, here is the changed code (replacing if-statement on line 322 in openid_cp_field.module)
This way the user's profile (only the OpenID AX mapped fields) is updated on the RP site each time user logs in.
Comment #3
MaxWesten commentedThanks a lot !
This fixed my problems too.
I've rolled it into a patch for easier use.
Comment #4
sanduhrsPlease have a look at http://drupal.org/node/506506#comment-3625080
Comment #5
MaxWesten commented#4: Updating the profile is good. The problem that was patched in this thread however created new content_profiles on each login (ie: new nodes) this is solved by using this patch (#3).
Comment #6
xamanu commentedThis should be work with the other patch, now committed to the module. Marking this as a duplicate.