Skip to content

Commit

Permalink
enabled value
Browse files Browse the repository at this point in the history
  • Loading branch information
avichaljadeja2002 committed Jan 28, 2025
1 parent a067187 commit 2509fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class User {
@Column()
private String password;

@Column(nullable = false)
@Column()
private boolean enabled;

@Column(name = "google_calendar_linked")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public ResponseEntity<?> registerUser(@RequestBody User user) {
}

user.setPassword(passwordEncoder.encode(user.getPassword()));
user.setEnabled(true);
User savedUser = userRepository.save(user);

// Return only username and userId
Expand Down

0 comments on commit 2509fec

Please sign in to comment.