Changeset 3ae4bab for ChapterX.Application
- Timestamp:
- 07/02/26 19:57:47 (3 days ago)
- Branches:
- main
- Children:
- a6e33d1
- Parents:
- a8f4a2d
- File:
-
- 1 edited
-
ChapterX.Application/Auth/LoginHandler.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.Application/Auth/LoginHandler.cs
ra8f4a2d r3ae4bab 18 18 { 19 19 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."); 21 21 22 22 if (!BCrypt.Net.BCrypt.Verify(request.Password, user.Password)) 23 throw new UnauthorizedAccessException("In valid email or password.");23 throw new UnauthorizedAccessException("Incorrect password. Please try again."); 24 24 25 25 var token = _jwtTokenService.GenerateToken(user);
Note:
See TracChangeset
for help on using the changeset viewer.
