Skip to content

Commit 18d73f2

Browse files
CopilotPhantomDave
andcommitted
Fix code formatting issues in AccountService
Applied dotnet format to fix whitespace formatting errors: - Fixed spacing after if statements - Fixed blank line spacing between methods - Ensures CI/CD formatting checks pass Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
1 parent d0f3bb2 commit 18d73f2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PhantomDave.BankTracking.Api/Services/AccountService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public AccountService(IUnitOfWork unitOfWork)
2222
{
2323
return await _unitOfWork.Accounts.GetSingleOrDefaultAsync(a => a.Email == email);
2424
}
25-
25+
2626
public async Task<IEnumerable<Account>> GetAllAccountsAsync()
2727
{
2828
return await _unitOfWork.Accounts.GetAllAsync();
@@ -74,11 +74,11 @@ private async Task<bool> IsEmailAlreadyPresent(string email)
7474
public async Task<Account?> LoginAccountAsync(string email, string password)
7575
{
7676
var account = await GetAccountByEmail(email);
77-
if(account == null)
77+
if (account == null)
7878
return null;
7979
return VerifyPassword(password, account.PasswordHash) ? account : null;
8080
}
81-
81+
8282
private static string HashPassword(string password)
8383
{
8484
const int iterations = 100_000;
@@ -90,7 +90,7 @@ private static string HashPassword(string password)
9090

9191
return $"PBKDF2-SHA256${iterations}${Convert.ToBase64String(salt)}${Convert.ToBase64String(hash)}";
9292
}
93-
93+
9494
private static bool VerifyPassword(string password, string stored)
9595
{
9696
if (string.IsNullOrWhiteSpace(stored))

0 commit comments

Comments
 (0)