Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Joshua Lemli 52 posts 234 karma points
    Sep 21, 2017 @ 18:31
    Joshua Lemli
    0

    Allow backoffice login with name, not email [7.7.1]

    I have been using Umbraco v7.6.x for several months. I have always logged in using the "name", not the "email" for the user account.

    In 7.7.1, it seems I need to use the email address of the backoffice user. Can this be changed so users can login with their username instead?

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Sep 21, 2017 @ 18:37
    Sebastiaan Janssen
    100
  • Joshua Lemli 52 posts 234 karma points
    Sep 21, 2017 @ 18:49
    Joshua Lemli
    0

    After changing this setting, I cannot create a "username" for users. Typing a new username and clicking "save" does not generate an error, but the username resets/defaults back to the email address.

    Can usernames be changed in the database? Or does the usernameIsEmail flag need to be enabled before creating a new user?

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Sep 21, 2017 @ 18:50
    Sebastiaan Janssen
    0

    Ah yes. Sorry, this will be fixed in 7.7.2, that's a big currently!

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Sep 21, 2017 @ 20:06
    Nicholas Westby
    0

    FYI, here's the issue with the pull request Sebastiaan added: http://issues.umbraco.org/issue/U4-10435

  • Joshua Lemli 52 posts 234 karma points
    Sep 22, 2017 @ 17:33
    Joshua Lemli
    0

    As a temporary fix, once you set this in config > umbracoSettings.config

    <settings>
      <security>
        <usernameIsEmail>false</usernameIsEmail>
      </security>
    </settings>
    

    you can modify the Umbraco DB directly to create a userLogin. In SQL-Server this would look like:

    UPDATE umbracoUser SET userLogin='desiredLoginName' WHERE userEmail='[email protected]';
    

    Note: I am not advocating directly modifying the Umbraco DB! This is just a potential workaround.

  • MuirisOG 382 posts 1284 karma points
    Feb 12, 2018 @ 16:56
    MuirisOG
    0

    Many thanks for showing us where this setting is, Sebastiaan

    Muiris

Please Sign in or register to post replies

Write your reply to:

Draft