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

Bad username or password. #4464

Open
Twenty94470 opened this issue Mar 7, 2025 · 4 comments
Open

Bad username or password. #4464

Twenty94470 opened this issue Mar 7, 2025 · 4 comments
Labels
requires triage Issue has not yet been verified by the development team. v5 Version 5 issue.

Comments

@Twenty94470
Copy link

Description of Issue

Hello,

I use PowerShell Universal every day, and I’m the only one with access to the platform. Today, when trying to log in with the root account, I received the error message: "Bad username or password."

This isn’t the first time this has happened. To address the issue, I created a second admin account, which works fine. I then went to the Identities tab to change the password for the root account, but even after doing so, I’m still encountering the same error.

The first time this happened, I deleted the database.db file, but I had to recreate all identities afterward.

On the System log on every try I have this result :

2025-03-07 11:09:41.314 +01:00 [INF][Microsoft.AspNetCore.Hosting.Diagnostics] Request starting HTTP/1.1 POST http://ServerName:5000/api/v1/signin/form?returnurl= - application/x-www-form-urlencoded 70
2025-03-07 11:09:41.314 +01:00 [INF][Microsoft.AspNetCore.Cors.Infrastructure.CorsService] CORS policy execution failed.
2025-03-07 11:09:41.314 +01:00 [INF][Microsoft.AspNetCore.Cors.Infrastructure.CorsService] Request origin http://ServerName:5000 does not have permission to access the resource.
2025-03-07 11:09:41.317 +01:00 [INF][Microsoft.AspNetCore.Routing.EndpointMiddleware] Executing endpoint 'UniversalDashboard.Controllers.AuthenticationController.SignInForm (Universal.Server)'
2025-03-07 11:09:41.317 +01:00 [INF][Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Route matched with {action = "SignInForm", controller = "Authentication", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] SignInForm(PowerShellUniversal.Credential, System.String) on controller UniversalDashboard.Controllers.AuthenticationController (Universal.Server).
2025-03-07 11:09:41.319 +01:00 [INF][Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Executing action method UniversalDashboard.Controllers.AuthenticationController.SignInForm (Universal.Server) - Validation state: "Valid"
2025-03-07 11:09:41.322 +01:00 [INF][Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Executed action method UniversalDashboard.Controllers.AuthenticationController.SignInForm (Universal.Server), returned result Microsoft.AspNetCore.Mvc.LocalRedirectResult in 3.5365ms.
2025-03-07 11:09:41.323 +01:00 [INF][Microsoft.AspNetCore.Mvc.Infrastructure.LocalRedirectResultExecutor] Executing LocalRedirectResult, redirecting to /login.
2025-03-07 11:09:41.323 +01:00 [INF][Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Executed action UniversalDashboard.Controllers.AuthenticationController.SignInForm (Universal.Server) in 5.275ms
2025-03-07 11:09:41.323 +01:00 [INF][Microsoft.AspNetCore.Routing.EndpointMiddleware] Executed endpoint 'UniversalDashboard.Controllers.AuthenticationController.SignInForm (Universal.Server)'
2025-03-07 11:09:41.323 +01:00 [INF][Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 POST http://ServerName:5000/api/v1/signin/form?returnurl= - 302 0 null 9.312ms
2025-03-07 11:09:41.327 +01:00 [INF][Microsoft.AspNetCore.Hosting.Diagnostics] Request starting HTTP/1.1 GET http://ServerName:5000/login - null null
2025-03-07 11:09:41.330 +01:00 [INF][Microsoft.AspNetCore.Routing.EndpointMiddleware] Executing endpoint '/Login'
2025-03-07 11:09:41.330 +01:00 [INF][Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker] Route matched with {page = "/Login", action = "", controller = ""}. Executing page /Login
2025-03-07 11:09:41.331 +01:00 [INF][Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker] Executing handler method PowerShellUniversal.Login.OnGet - ModelState is "Valid"
2025-03-07 11:09:41.333 +01:00 [INF][Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker] Executed handler method OnGet, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.
2025-03-07 11:09:41.334 +01:00 [INF][Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker] Executed page /Login in 3.4291ms
2025-03-07 11:09:41.334 +01:00 [INF][Microsoft.AspNetCore.Routing.EndpointMiddleware] Executed endpoint '/Login'
2025-03-07 11:09:41.334 +01:00 [INF][Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 GET http://ServerName:5000/login - 200 null text/html; charset=utf-8 7.4415ms

Version

5.2.4

Severity

High

Hosting Method

MSI (Windows Service)

Operating System

Windows

Database

SQLite

Licensed

No

Features

No response

Additional Environment data

No response

Screenshots/Animations

Image

@Twenty94470 Twenty94470 added requires triage Issue has not yet been verified by the development team. v5 Version 5 issue. labels Mar 7, 2025
@adamdriscoll
Copy link
Member

adamdriscoll commented Mar 7, 2025

@Twenty94470 - I'm assuming that you aren't actively doing anything with identities. This would include things like changing role assignments etc. It just seems to happen randomly?

Have you tried to use the psu cli command for resetting the admin password? It's weird that resetting in the console is not working.

https://docs.powershelluniversal.com/config/psucli#reset

@Twenty94470
Copy link
Author

Hello,

Yes, I don't manage identities at all; it just stopped working from one day to the next.
I tried using the command line to reset the root account, but now I have another issue. :D

Image

Regards

@Twenty94470
Copy link
Author

If I share my database, that will help you to reproduce the issue ?

@adamdriscoll
Copy link
Member

The would be helpful. Can you upload here? https://www.dropbox.com/request/G0JY5YQ2NpjMPE7syjxl

I'm assuming the admin password has been double encrypted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires triage Issue has not yet been verified by the development team. v5 Version 5 issue.
Projects
None yet
Development

No branches or pull requests

2 participants