Skip to content

Commit

Permalink
hotfix:
Browse files Browse the repository at this point in the history
  • Loading branch information
dkflfkd53 committed Aug 27, 2024
1 parent d8d04dd commit 397fa9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ private String createRefreshToken(String id, AuthElementDto.UserRole role) {
return refreshToken;
}

private String getSecret(AuthElementDto.UserRole userRole) {
if (userRole.equals(AuthElementDto.UserRole.TEACHER)) {
private String getSecret(AuthElementDto.UserRole role) {
if (role.equals(AuthElementDto.UserRole.TEACHER)) {
return jwtProperties.teacherSecret();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public class RefreshTokenEntity {
@Id
private String id;
private UserRole userRole;
private UserRole role;

@Indexed
private String token;
Expand Down

0 comments on commit 397fa9c

Please sign in to comment.