Class EmailVerificationConfigurer

java.lang.Object
com.codename1.backend.security.SecurityConfigurer
com.codename1.backend.security.EmailVerificationConfigurer

public final class EmailVerificationConfigurer extends SecurityConfigurer

The address a mailed verification link opens.

http.emailVerification(Customizer.withDefaults());

GET /verify-email?token=... is a page with one button, and pressing it -- a POST -- records the address as proved and sends the user to /?verified; a link that is no longer good is answered 400. Opening the link proves nothing by itself, because a mail gateway opens every link in a mail before its reader does. The address is open to everyone: a link is often opened on another device than the one that is signed in.

The application mails the link itself, where it takes the address, with linkUrl() as where it leads:

verification.send(username, email, "https://example.com/verify-email");

The work is an EmailVerificationService's: the one given here, or the application's bean of that type.