elabftw / elabftw

:notebook: eLabFTW is the most popular open source electronic lab notebook for research labs.
https://www.elabftw.net
GNU Affero General Public License v3.0
1.01k stars 218 forks source link

Login via username or some other short handle #5342

Open Low87 opened 5 days ago

Low87 commented 5 days ago

Describe your feature request precisely

We change users on a computer quite frequently and it happens regularly that users do not log off from elabftw because the login process requires them typing the whole email address which can be quite tiring if done once an hour. This results in experiments being created and edited with the wrong username.

It would be great to have a short handle or username for each user that can be used for login, making the process easier.

Pro Support

No pro support.

garrettcurley commented 4 days ago

I would suggest something similar to what Google or Microsoft do: when you log out you get the option to click on a user that has already used the same computer/browser.

More generally, I think the user icon could be replaced with the initials of the person logged on. Or some other easily identifiable icon. For example, in my case:

Replace this: user-icon with this: GC

This would make it quickly visible who is logged on to eLab on the computer and help avoid experiments being created/edited with the wrong username.

Athemis commented 4 days ago

Another alternative would be to use identicons, which is what e.g. GitHub does if no profile image is provided by the user. There are numerous implementations available. Jdenticon for example provides both js and php implementations.

Edit: I played around with the mentioned js library and came up with this. What do you think about it? identicon_prototype

This is using a hash of the user's email address.

NicolasCARPi commented 2 days ago

See https://github.com/elabftw/elabftw/pull/5351