Would it be possible to make the alternate login field be required and to have it replace the original username wherever it shows on the site: user profile, node author, blocks, etc?

Comments

hunmonk’s picture

i think it would be possible to do both with some admin settings and relatively small changes to the code. i don't really have an itch to code this, though. feel free to submit a patch that accomplishes this, or i would also consider sponsorship for writing the code.

gracearoha’s picture

sorry, am quite a newb and do not know php - therefore hopeless with code. will look for alternate solution.

asak’s picture

@gracearoha: Have you found a way to do this?

I thought of getting all modules to display ONLY the UID and not disply the username - but this approach is better. and i think much less work.

@hunmonk: I really need to get the login name out of the faces of all users. Seems using this module would be my best option, since messing around endlessly with 20+ other modules which display usernames, ID's and whatnot would take forever.

The simple solution - Add an admin feature to this module for "Enable/disable login using ORIGINAL username", and by so enable loging in ONLY with the Alternative Login. What this would do is provide users of my site with a login ID which is never shown to other sites on the site. Since the username would then only be for displey, and not used for login, i don't mind other users seeing these usernames.

Just how much sponsering would this take? ;)

Thanks!

hunmonk’s picture

Status: Active » Postponed (maintainer needs more info)

@asak: i'm not clear what your goal is. even if you require the user to login only w/ their alternate login name, that won't have any effect on if their real username is displayed. what am i missing?

asak’s picture

My goel is to seperate the username, which is displayed freely and openly on the site, from the login name, which shouldn't be visible anywhere. mainly for security reasons.

I guess i'm assuming something which i haven't checked yet, which is that even while posting messages using an alternative login name the Authored By would still display the username and not the login name. If that's true - then it's a great solution. If not - i think i should find a better approach.

hunmonk’s picture

you can contact me in private about sponsoring this feature request, via the contact tab on my drupal.org user profile.

summit’s picture

SUbscribing, greetings, Martijn

hunmonk’s picture

Version: 5.x-1.8 » 7.x-1.x-dev
ClearXS’s picture

It is generally known as screen-name that can be different than user-name. The username can be kept secret and no-one has to know, only getting the screen-name to see.

uno’s picture

I would also strongly support the feature to have alternate name displayed to users/guests while I login with a different username (known only to authorized users).

hunmonk’s picture

see http://drupal.org/project/alt_login#commitment for how feature requests are handled

xem8vfdh’s picture

Issue summary: View changes

This would be a huge improvement. In Drupal 8, it seems that this can easily be achieved by adding a hook_user_format_name_alter to the .module file. I'm familiar with PHP, but not familiar with drupal/drupal.org processes, so I am not sure how to contribute to this module to provide said code. Any pointers would be appreciated.

EDIT: the above works for drupal 8, not 7. I've actually made the necessary code changes and will post on the 8.x branch.

EDIT2: see https://www.drupal.org/node/2746053