use of org.sagebionetworks.bridge.services.EmailVerificationStatus in project BridgeServer2 by Sage-Bionetworks.
the class AppController method verifySenderEmail.
@PostMapping(path = { "/v1/apps/self/verifyEmail", "/v3/studies/self/verifyEmail" })
public EmailVerificationStatusHolder verifySenderEmail() {
UserSession session = getAuthenticatedSession(DEVELOPER);
App app = appService.getApp(session.getAppId());
EmailVerificationStatus status = emailVerificationService.verifyEmailAddress(app.getSupportEmail());
return new EmailVerificationStatusHolder(status);
}
use of org.sagebionetworks.bridge.services.EmailVerificationStatus in project BridgeServer2 by Sage-Bionetworks.
the class AppController method getEmailStatus.
@GetMapping(path = { "/v1/apps/self/emailStatus", "/v3/studies/self/emailStatus" })
public EmailVerificationStatusHolder getEmailStatus() {
UserSession session = getAuthenticatedSession(DEVELOPER);
App app = appService.getApp(session.getAppId());
EmailVerificationStatus status = emailVerificationService.getEmailStatus(app.getSupportEmail());
return new EmailVerificationStatusHolder(status);
}
Aggregations