-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 change installation administrator's password #16943
Comments
Hi there @nackler! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
I have seen docs https://docs.umbraco.com/umbraco-cms/reference/security/reset-admin-password suggesting that to change this original admin password the trick is to change the configured connection string in appsettings to an empty string (""). When I do this my site does not run but I get an error in my logs. Perhaps some piece of middleware is getting in the way before that workflow can kick in. If that is the case is there something I can do in appsettings to prevent this? I don't want to have to deploy a temporary version of the application with a simplified Program.cs to production. "The factory has not been configured with a proper connection string."
|
Ok, through trial and error after examining the call-stack above, I found that removing my "Umbraco/CMS/Global/ReservedPaths' setting in appsettings.json got me past the error and I was able to get to the installation page. Perhaps:
|
Just getting to the installation page has only been part of the problem. I need to use a connection string for this connection. but when I enter one I keep getting an immediate error when clicking install. I can get through the installer using 'SQL Server' as my connection type, with or without integrated security, but if I choose 'Custom' as my connection type and enter my connection string I get the following error: Obviously there is a database name provided in that connection string. It is just a simple example. Any connection string fails with the same message. |
Hi @nackler , thank you for reporting this issue. I can see there are a lot of issues in one here 😥
For the docs https://docs.umbraco.com/umbraco-cms/reference/security/reset-admin-password, You only need to use it when you forget the password for the super admin account specifically. So if you remember your password and want to change it, you can still use the button "Change password" (of course, we will fix it). Btw, I couldn't reproduce ""The factory has not been configured with a proper connection string." error like you got on V14.1.2 |
Fixed in: umbraco/Umbraco.CMS.Backoffice#2244 |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
14.1.1
Bug summary
Unable to change the umbraco administrator password. This is the main admin username/password that is configured during an initial install.
Specifics
Logged in to the backoffice as the original administrator.
Tried to change my own password by clicking my user-icon in the top right corner and choosing 'Change Password'. I was prompted for my old and new passwords. After submitting the form the dialog disappears with no confirmation that the password was changed. Nothing in the logs, no browser console error.
When I log out, then try to log in again using the new password it is evident that the new password was not saved.
I also tried changing my own password by going in to the 'Users' section of the backoffice, clicking my name to drill into my user details, then choosing 'change password' from that screen. When doing it this way, even though I enter my old password in the field provided, I get a visible error in the bottom right hand corner and in the javascript console
{
"type": "Error",
"title": "Old password required",
"status": 400,
"detail": "The old password is required to change your own password.",
"operationStatus": "SelfOldPasswordRequired"
}
If I log in as a different user in the administrators group, the original 'admin user' doesn't show up in the list of editable users so I cannot try changing its password
Steps to reproduce
Log in to the backoffice as the original installation admin user
Attempt to change your own password by choosing 'Change Password' from your profile dropdown in the top right corner.
Enter the old and new passwords, submit the form.
Log out.
Log in using the new password.
Expected result / actual result
Expected to be able to login using the new password.
Instead, the old password was the only password that worked.
The text was updated successfully, but these errors were encountered: