Skip to content

Commit

Permalink
[FO-491] user verified hotfix (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok authored Nov 4, 2023
1 parent d75c171 commit b410ec4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/main/kotlin/com/fone/user/domain/entity/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.fone.user.domain.enum.Job
import com.fone.user.domain.enum.LoginType
import com.fone.user.presentation.dto.ModifyUserDto.AdminModifyUserRequest
import com.fone.user.presentation.dto.ModifyUserDto.ModifyUserRequest
import org.hibernate.annotations.ColumnDefault
import org.springframework.security.core.GrantedAuthority
import org.springframework.security.core.authority.SimpleGrantedAuthority
import org.springframework.security.core.userdetails.UserDetails
Expand Down Expand Up @@ -51,7 +52,9 @@ data class User(
@Column var enabled: Boolean = false,
@JvmField @Column
var password: String? = null,
@Column var isVerified: Boolean = false,
@Column
@ColumnDefault("false")
var isVerified: Boolean = false,
@Column var lastLoginDate: LocalDateTime? = null,
) : UserDetails, BaseEntity() {
fun modifyUser(request: ModifyUserRequest) {
Expand Down

0 comments on commit b410ec4

Please sign in to comment.