chore: update
This commit is contained in:
@@ -54,6 +54,12 @@
|
||||
<artifactId>jose4j</artifactId>
|
||||
<version>0.9.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.datafaker</groupId>
|
||||
<artifactId>datafaker</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-messaging-kafka</artifactId>
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package com.drinkool.filters;
|
||||
|
||||
|
||||
import com.drinkool.lib.utils.BaseHeaderAuthentication;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
|
||||
@ApplicationScoped
|
||||
public class HeaderRolesFilter extends BaseHeaderAuthentication {}
|
||||
public class HeaderRolesFilter extends BaseHeaderAuthentication {}
|
||||
|
||||
@@ -46,13 +46,10 @@ public class StaffService extends BaseService<StaffEntity> {
|
||||
.build();
|
||||
}
|
||||
|
||||
@POST
|
||||
@POST
|
||||
@Path(Url.Login)
|
||||
public Response login(Login input) {
|
||||
StaffEntity staff = StaffEntity.find(
|
||||
"phone",
|
||||
input.phone
|
||||
).firstResult();
|
||||
StaffEntity staff = StaffEntity.find("phone", input.phone).firstResult();
|
||||
|
||||
if (staff == null) return Response.status(Response.Status.BAD_REQUEST)
|
||||
.entity("InvalidPhoneNumber")
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
package com.drinkool.lib.dtos;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Signup {
|
||||
|
||||
public String name;
|
||||
|
||||
Reference in New Issue
Block a user