Ignore:
Timestamp:
02/04/23 00:39:48 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
2269653
Parents:
ac25203
Message:

Fixing errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/model/User.java

    rac25203 reb226b2  
    99
    1010import javax.management.relation.Role;
     11import java.time.LocalDate;
    1112import java.time.LocalDateTime;
    1213import java.util.Collection;
     
    2930    String contact_number;
    3031    String username;
    31     LocalDateTime date_created;
     32    LocalDate date_created;
    3233
    33     private boolean isAccountNonExpired = true;
    34     private boolean isAccountNonLocked = true;
    35     private boolean isCredentialsNonExpired = true;
    36     private boolean isEnabled = true;
    3734
    38     @Enumerated(value = EnumType.STRING)
    39     private Role role;
    40 
    41     public User(Integer id_user, String password, String first_name, String last_name, String address, String contact_number, String username, LocalDateTime date_created, Role role) {
     35    public User(Integer id_user, String password, String first_name, String last_name, String address, String contact_number, String username, LocalDate date_created) {
    4236        this.id_user = id_user;
    4337        this.password = password;
     
    4842        this.username = username;
    4943        this.date_created = date_created;
    50         this.role = role;
    5144    }
    5245
     
    6356    @Override
    6457    public boolean isAccountNonExpired() {
    65         return isAccountNonExpired;
     58        return true;
    6659    }
    6760
    6861    @Override
    6962    public boolean isAccountNonLocked() {
    70         return isAccountNonLocked;
     63        return true;
    7164    }
    7265
    7366    @Override
    7467    public boolean isCredentialsNonExpired() {
    75         return isCredentialsNonExpired;
     68        return true;
    7669    }
    7770
    7871    @Override
    7972    public boolean isEnabled() {
    80         return isEnabled;
     73        return true;
    8174    }
    8275
Note: See TracChangeset for help on using the changeset viewer.