mirror of https://github.com/abpframework/abp.git
committed by
GitHub
34 changed files with 156 additions and 38 deletions
@ -1,5 +1,36 @@ |
|||||
# KB#0003: Can not login with the admin user |
# KB#0003: Cannot login with the admin user |
||||
|
|
||||
* Try username `admin` and Password `1q2w3E*`. |
## Use the Correct Username and Password |
||||
* Try to migrate database. If you have a `DbMigrator` application in your solution, use it. It will seed initial data and create the admin user for you. |
|
||||
* If not works, read the README.MD file in your solution, or check the [Getting Started](https://abp.io/docs/latest/get-started) document. |
You may have entered the wrong password. The username is `admin`, and the password is `1q2w3E*`. Note that the password is case-sensitive. |
||||
|
|
||||
|
## Forgot to Seed Initial Data |
||||
|
|
||||
|
You may need to add migrations and update the database using the EF Core CLI. If your solution includes a `DbMigrator` application, you must run the `DbMigrator` application to seed the initial data. |
||||
|
|
||||
|
If your project does not include a `DbMigrator` application, there might be a `migrate-database.ps1` script available. You can use it to migrate and seed the initial data. |
||||
|
|
||||
|
> The no-layer application typically support a `--migrate-database` option for migrating and seeding initial data. |
||||
|
|
||||
|
> Example: |
||||
|
> ```bash |
||||
|
> dotnet run --migrate-database |
||||
|
> ``` |
||||
|
|
||||
|
## Tenant Admin User |
||||
|
|
||||
|
If you cannot log in as a tenant admin user, ensure the tenant database is created and seeded, Use the password that was set during tenant creation. |
||||
|
|
||||
|
> The tenant seeding process is handled by the template project. If it is not completed, please check the `Logs` file for any error logs. |
||||
|
|
||||
|
## Check the `AbpUsers` Table |
||||
|
|
||||
|
If you have performed migration and seeded the initial data, check the `AbpUsers` table in the database. Ensure that the user record exists. If your tenant has a separate database, check the tenant database as well. |
||||
|
|
||||
|
Passwords are stored in hashed format, not plain text. If you suspect the password is incorrect, you can delete the user record and re-seed the initial data using the `DbMigrator` application or the `migrate-database.ps1` script. |
||||
|
|
||||
|
## Other Issues |
||||
|
|
||||
|
If the issue persists, refer to the `README.MD` file in your solution or consult the [Getting Started](https://abp.io/docs/latest/get-started) documentation. |
||||
|
|
||||
|
Feel free to create an issue in the [ABP GitHub repository](https://github.com/abpframework/abp/issues/new/choose) or contact [ABP Commercial Support](https://abp.io/support/questions/New) for assistance. |
||||
|
|||||
Loading…
Reference in new issue