-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from PEC-CSS/ken
Removed email related things
- Loading branch information
Showing
5 changed files
with
32 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
src/main/java/com/pecacm/backend/services/EmailService.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/main/java/com/pecacm/backend/services/VerificationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.pecacm.backend.services; | ||
|
||
import com.pecacm.backend.entities.User; | ||
import com.pecacm.backend.entities.VerificationToken; | ||
import com.pecacm.backend.repository.VerificationTokenRepository; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Service; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
@Service | ||
public class VerificationService { | ||
|
||
private final VerificationTokenRepository verificationTokenRepository; | ||
|
||
@Autowired | ||
public VerificationService(VerificationTokenRepository verificationTokenRepository) { | ||
this.verificationTokenRepository = verificationTokenRepository; | ||
} | ||
|
||
@Transactional | ||
public VerificationToken getVerificationToken(User user) { | ||
return verificationTokenRepository.save( | ||
VerificationToken.builder().user(user).build() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters