Skip to content

Commit 7fe0085

Browse files
Modified the authentication content
1 parent 4a15cce commit 7fe0085

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

Extension/Blazor-Extension/Visual-Studio/template-studio.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,25 +376,35 @@ You can select a culture language in combobox at top right on the output page to
376376

377377
##### Applying Database Migrations and User Registration in the .NET 8.0 Blazor Web App
378378

379-
1. Navigate to **View -> Other Windows -> Package Manager Console** in Visual studio.
379+
###### Applying Database Migrations:
380380

381-
2. Run the following command in the Package Manager Console to apply pending migrations to the database:
381+
In the Blazor Web App, it's essential to apply pending migrations to the database before proceeding with user registration. Choose one of the following options:
382382

383-
```Update-Database```
383+
**Option 1: Using Visual Studio Package Manager Console**
384+
385+
Navigate to **View -> Other Windows -> Package Manager Console** in Visual Studio.
386+
387+
Run the following command in the Package Manager Console:
384388

385-
Alternatively, you can apply pending migrations from a command prompt in your project directory by running the following command:
389+
```Update-Database```
386390

387-
```dotnet ef database update```
391+
**Option 2: Using Command Prompt**
392+
393+
Open a command prompt in your project directory and execute the following command:
388394

389-
3. Now, launch the application and register by submitting your email address and creating a password.
395+
```dotnet ef database update```
396+
397+
###### User Registration:
398+
399+
1. Launch the application and register by submitting your email address and creating a password.
390400

391401
![Register the WebApp](images/WebAppRegister.png)
392402

393-
4. Confirm your registration by clicking **Click here to confirm your account.**
403+
2. Confirm your registration by clicking **Click here to confirm your account.**
394404

395405
![Confirming the WebApp registration](images/WebAppRegisterConfirmation.png)
396406

397-
5. Submit your registered email address and password to log in to the application.
407+
3. Submit your registered email address and password to log in to the application.
398408

399409
![LogIn to the WebApp](images/WebApplogIn.png)
400410

0 commit comments

Comments
 (0)