diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-12 15:27:40 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-12 15:27:40 +0200 |
| commit | 9263e0c66aa7463975635a36ddcc85b45af0c66c (patch) | |
| tree | 2af4ee64e71867c13a1beef6ad5dad838d86ca99 /API/Extensions/ConfigureDatabase.cs | |
| parent | e7912e18285f0381e66e78da948c0cd37a06fbd7 (diff) | |
| download | DevHive-9263e0c66aa7463975635a36ddcc85b45af0c66c.tar DevHive-9263e0c66aa7463975635a36ddcc85b45af0c66c.tar.gz DevHive-9263e0c66aa7463975635a36ddcc85b45af0c66c.zip | |
Fixed merge conflicts
Diffstat (limited to 'API/Extensions/ConfigureDatabase.cs')
| -rw-r--r-- | API/Extensions/ConfigureDatabase.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/API/Extensions/ConfigureDatabase.cs b/API/Extensions/ConfigureDatabase.cs index 57560e2..0e00870 100644 --- a/API/Extensions/ConfigureDatabase.cs +++ b/API/Extensions/ConfigureDatabase.cs @@ -13,15 +13,11 @@ namespace API.Extensions public static void DatabaseConfiguration(this IServiceCollection services, IConfiguration configuration) { services.AddDbContext<DevHiveContext>(options => - options.UseNpgsql(configuration.GetConnectionString("DEV"))) - .AddAuthentication() - .AddJwtBearer(); + options.UseNpgsql(configuration.GetConnectionString("DEV"))); services.AddIdentity<User, Roles>() .AddEntityFrameworkStores<DevHiveContext>(); - services.AddAuthentication(); - services.Configure<IdentityOptions>(options => { options.User.RequireUniqueEmail = true; @@ -39,4 +35,4 @@ namespace API.Extensions app.UseAuthorization(); } } -}
\ No newline at end of file +} |
