Open adetwiler opened 13 years ago
Seems like a good change for user security. I'll get this in there. :)
...actually, it seems to me like there are checks in place where appropriate for security reasons. Some of these things should run on login regardless of auth type, so that Escher has the most up-to-date account information.
Is there a particular field that Escher is updating that you don't want updated?
Yeah that's a good point, the only field that I don't think should be updated only if an account if Linked and not used as an auth method should be full name. I had to use a different helper to link accounts, I can send you my helpers and maybe we can figure out a way to consolidate them if necessary, or create a different helper. It uses most of the same code.
Sure, email me the code and I'll see what it does. I did plan on expanding the FB & Twitter plugins at some point; some of what you've done may be what I had in mind.
As far as the full_name... It will only update the full name if $USER->full_name is equal to the stored value of the auth full_name. However, an additional $USER->auth check here might be appropriate. Lemme think about it.
Facebook & Twitter plugins onLogin() methods do not account for local auth
Example:
`if(empty($USER->facebook_uid)) { return; }``
should become
if(empty($USER->facebook_uid) || $USER->auth != 'facebook') { return; }
This is to account for Linking Facebook and Twitter accounts on the local auth type.