Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to log in to convert Umbraco 8 to Umbraco 9.5.0 - umbracoTwoFactorLogin #12389

Closed
russellshome opened this issue May 11, 2022 · 4 comments

Comments

@russellshome
Copy link
Contributor

russellshome commented May 11, 2022

Which exact Umbraco version are you using? For example: 9.0.1 - don't just write v9

9.5.0

Bug summary

After starting Umbraco 9.5.0 using an Umbraco 8 database, login fails even when correct login/password are entered.

Specifics

I have a working Umbraco 8.17.1 website.
I attempted to connect to that database using a newly created Umbraco 9.5.0 website
Login failed.
Reset password and attempted again - failed to log in.

I downgraded to 9.4.3, connected to the same database and that works - I was able to log in and convert.

Steps to reproduce

Take an existing working Umbraco8 website database.
Take note of the login/pass of the admin
Connect an Umbraco 9.5.0 website to that database & run
Attempt to log in
This will fail.

Expected result / actual result

Login should work so that conversion of website from Umbraco8 to Umbraco 9 can proceed using >= 9.5.0.

@nathanwoulfe
Copy link
Contributor

Hey @russellshome have you tried setting the unattended install options in appsettings.json?

Pretty sure this is required now (I did a database upgrade earlier this week, from 8.17 to 9.5, worked perfectly with those settings in place).

@russellshome
Copy link
Contributor Author

Are you referring to https://our.umbraco.com/documentation/reference/V9-Config/UnattendedSettings/

"This is a feature that allows Umbraco to install without using the UI. If you don't intended to use this feature, you don't need to configure this."

It sounds like you are saying that the documentation is now incorrect since it says you don't need to configure this when using the UI.

@p-m-j
Copy link
Contributor

p-m-j commented May 11, 2022

Edit: This won't help it's something to do with the recent twoFactor changes, the workaround for which @nathanwoulfe mentioned above.

1. The result of the sql query below (an integer)
2. The full value of UsersMembershipProvider from web.config
3. The values of the validation & decryption attributes on the MachineKey element in web.config (if present)

select len(userPassword) as hashLength
from umbracoUser 
where userEmai = '{{email of account which cannot login in 9.5}}'

@p-m-j p-m-j changed the title Unable to log in to convert Umbraco 8 to Umbraco 9.5.0 Unable to log in to convert Umbraco 8 to Umbraco 9.5.0 - umbracoTwoFactorLogin May 25, 2022
@p-m-j p-m-j added the state/in-sprint We've committed to work on this during the sprint indicated in the milestone label May 25, 2022
@p-m-j
Copy link
Contributor

p-m-j commented Jun 1, 2022

Closed by #12494

Thanks for the report!

@p-m-j p-m-j closed this as completed Jun 1, 2022
@nul800sebastiaan nul800sebastiaan removed the state/in-sprint We've committed to work on this during the sprint indicated in the milestone label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants