diff --git a/ExpenseTracker/.idea/.idea.ExpenseTracker/.idea/workspace.xml b/ExpenseTracker/.idea/.idea.ExpenseTracker/.idea/workspace.xml
index 81a108f..d7785ad 100644
--- a/ExpenseTracker/.idea/.idea.ExpenseTracker/.idea/workspace.xml
+++ b/ExpenseTracker/.idea/.idea.ExpenseTracker/.idea/workspace.xml
@@ -9,14 +9,7 @@
-
-
-
-
-
-
-
-
+
@@ -27,14 +20,25 @@
+
+
-
-
+
+
+
+
+
+
+
@@ -46,26 +50,26 @@
- {
- "keyToString": {
- ".NET Launch Settings Profile.ExpenseTracker: http.executor": "Debug",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "git-widget-placeholder": "master",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -115,9 +119,12 @@
+
+
+
diff --git a/ExpenseTracker/ExpenseTracker.Application/Services/CurrentUserService.cs b/ExpenseTracker/ExpenseTracker.Application/Services/CurrentUserService.cs
index 287eb35..e448fb8 100644
--- a/ExpenseTracker/ExpenseTracker.Application/Services/CurrentUserService.cs
+++ b/ExpenseTracker/ExpenseTracker.Application/Services/CurrentUserService.cs
@@ -12,21 +12,6 @@ public CurrentUserService(IHttpContextAccessor contextAccessor)
{
_contextAccessor = contextAccessor ?? throw new ArgumentNullException(nameof(contextAccessor));
}
-
- public Guid GetCurrentUserId()
- {
- var user = (_contextAccessor.HttpContext?.User)
- ?? throw new InvalidOperationException("Current context does not have user.");
-
- var userId = user.FindFirst(ClaimTypes.NameIdentifier)?.Value;
-
- if (!Guid.TryParse(userId, out Guid result))
- {
- throw new InvalidOperationException($"Could not parse user id: {userId}.");
- }
-
- return result;
- }
public string GetCurrentUserName()
{
diff --git a/ExpenseTracker/ExpenseTracker.Infrastructure/Configurations/EmailOptions.cs b/ExpenseTracker/ExpenseTracker.Infrastructure/Configurations/EmailOptions.cs
index 08a1271..142fce0 100644
--- a/ExpenseTracker/ExpenseTracker.Infrastructure/Configurations/EmailOptions.cs
+++ b/ExpenseTracker/ExpenseTracker.Infrastructure/Configurations/EmailOptions.cs
@@ -10,6 +10,19 @@ public class EmailOptions
public required string From { get; init; }
[Required(ErrorMessage = "Smtp server is required")]
+ ces
+ fcesc
+ es
+ cesc
+ es
+ ce
+ sdc
+ esd
+ class sd
+ cd
+ scds
+ cd
+ sc
public required string SmtpServer { get; init; }
[Required(ErrorMessage = "Port is required")]