Skip to content

Commit

Permalink
Some changes has been made.
Browse files Browse the repository at this point in the history
  • Loading branch information
CerenBdk committed Jun 1, 2021
1 parent fe47bbb commit faa07d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package kodlamaio.hrms.business.concretes;

import java.time.LocalDate;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

Expand Down Expand Up @@ -187,7 +185,7 @@ private boolean checkIfEqualPasswordAndConfirmPassword(String password, String c

private void verificationCodeRecord(String code, int id, String email) {

VerificationCode verificationCode = new VerificationCode(id, code, false, LocalDate.now());
VerificationCode verificationCode = new VerificationCode(id, code, false);
this.verificationCodeService.add(verificationCode);
System.out.println("Verification code has been sent to " + email );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ public class VerificationCode {
@Column(name= "is_deleted", columnDefinition = "boolean default false")
private boolean isDeleted = false;

public VerificationCode(int id, int userId, String code, boolean isConfirmed) {
public VerificationCode(int userId, String code, boolean isConfirmed) {
super();
this.id = id;
this.userId = userId;
this.code = code;
this.isConfirmed = isConfirmed;
Expand Down

0 comments on commit faa07d6

Please sign in to comment.