implement registration validity checks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-09 04:56:54 +02:00
parent c0f655b0df
commit 17dcc0ac4f
9 changed files with 108 additions and 27 deletions

View File

@@ -1,5 +1,6 @@
package wtf.beatrice.releasehive.services;
import org.apache.coyote.BadRequestException;
import wtf.beatrice.releasehive.dtos.LoginUserDto;
import wtf.beatrice.releasehive.dtos.RegisterUserDto;
import wtf.beatrice.releasehive.models.User;
@@ -7,7 +8,7 @@ import wtf.beatrice.releasehive.models.User;
public interface AccountService
{
User register(RegisterUserDto user);
User register(RegisterUserDto user) throws BadRequestException;
User login(LoginUserDto user);
}