Skip to content

Commit

Permalink
refactor: googleEmail "" 로 들어갈 때 예외 처리 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwon-cho authored Feb 17, 2024
1 parent b8ef194 commit fd2804d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/mara/server/domain/user/UserService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UserService(
val newUser = createUser(user)

var authId = newUser.kakaoId.toString()
if (newUser.googleEmail != null) authId = newUser.googleEmail!!
if (newUser.googleEmail != null && newUser.googleEmail != "") authId = newUser.googleEmail!!

SecurityContextHolder.getContext().authentication =
UsernamePasswordAuthenticationToken(authId, newUser.password)
Expand Down

0 comments on commit fd2804d

Please sign in to comment.