CuBoulder / ucb_user_invite

This Drupal module enables users with permissions to invite CU Boulder users to log in to their website.
0 stars 0 forks source link

Multiple accounts for the same user #12

Open kevincrafts opened 6 days ago

kevincrafts commented 6 days ago

We have many users on campus who work on a large number of sites and sometimes go to log in to a site only to find out they don't have a role.

This results in them having a user account on the site, but no roles assigned.

If they were to now get an invite to the site, there will be two user accounts on the site, but they will only ever use the first one - the one without any roles assigned.

Here's an example of where Alicia logged into a site, and an invite was sent to her afterwards:

image

To fix this, someone needs to login and assign the proper roles to the first account and delete the second account.

Can the invite be smart enough to not create a new account where one already exists?

timurtripp commented 6 days ago

There's code in user invite to make it use an existing account if one exists. I wonder what's happening here.

timurtripp commented 6 days ago

It looks like what's happening is when a user logs in it changes the username from their Identikey to their full name. Since the user invite module only accepts Identikeys this is a non-trivial fix unfortunately.

timurtripp commented 6 days ago

The development team will need to discuss this further.

jcsparks commented 6 days ago

The email addresses should still match though, right?

timurtripp commented 6 days ago

@jcsparks Email is changed to the full name version as well.

timurtripp commented 6 days ago

Just going off what I see on the developer sandbox, it's clearly evident which users have logged in and which haven't.

timurtripp commented 6 days ago

A fix for new accounts created by user invite would be to make a field and store the user's Identikey there, but it wouldn't work for the accounts which already exist on sites, or users logging in cold (without an invite).

jcsparks commented 1 day ago

@jacob-korf can you please log into the Developer Sandbox site : https://www.colorado.edu/developer-sandbox/

We've made a config change and want to see what happens to your account email address after you log in.