Copied to clipboard

Flag this post as spam?

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


  • Asilva 6 posts 95 karma points
    Sep 14, 2022 @ 15:18
    Asilva
    0

    Hey, I'm trying to login a member in umbraco v10 and I can't seem to find how to do it.

    In v8 you could use Members.Login but can't find the equivalent for v10.

    Anyone can point me in the right direction? I've checked the documentation and apart from that example using a view with macro I couldn't find anything on it.

    Is IMemberSignInManager gone in v10?

  • Giant Penguin 23 posts 112 karma points
    Sep 15, 2022 @ 04:58
    Giant Penguin
    100

    From this article https://our.umbraco.com/documentation/Tutorials/Members-Registration-And-Logins/ you can see the Login macro code and able jump to and see the built-in UmbLoginController that the macro has a call to its HandleLogin action. You can look into it through your VS ide.

    In case, you have migrated the db to V10 already, so all the Member data records are there, you need add LegacyPasswordMigration config:

    "Umbraco": { "CMS": { ... , "LegacyPasswordMigration": { "MachineKeyDecryptionKey": "keyvaluefromtheV8siteweb.config_machineKey.decryptionKey" } } }

  • Asilva 6 posts 95 karma points
    Sep 15, 2022 @ 09:25
    Asilva
    0

    Thank you. Managed to find how to actually do it.

    It is a new project so no migration needed but I had to make an api controller so I can manage user logins from an app.

  • Mathew John 13 posts 103 karma points
    Feb 08, 2023 @ 12:51
    Mathew John
    0

    Hi Asilva,

    It will be helpful if you can share more details on this.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft