Ignore:
Timestamp:
07/02/26 19:57:47 (3 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
a6e33d1
Parents:
a8f4a2d
Message:

Changes for log in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Application/Auth/LoginHandler.cs

    ra8f4a2d r3ae4bab  
    1818        {
    1919            var user = await _userRepository.GetByEmailAsync(request.Email, cancellationToken)
    20                 ?? throw new UnauthorizedAccessException("Invalid email or password.");
     20                ?? throw new UnauthorizedAccessException("No account found with this email. Please register first.");
    2121
    2222            if (!BCrypt.Net.BCrypt.Verify(request.Password, user.Password))
    23                 throw new UnauthorizedAccessException("Invalid email or password.");
     23                throw new UnauthorizedAccessException("Incorrect password. Please try again.");
    2424
    2525            var token = _jwtTokenService.GenerateToken(user);
Note: See TracChangeset for help on using the changeset viewer.