working on confirmed subscription
This commit is contained in:
@@ -225,8 +225,10 @@ public class MailingList {
|
||||
return String.join(", ", states);
|
||||
}
|
||||
|
||||
public void requestSubscription(User user) throws SQLException, MessagingException {
|
||||
var member = ListMember.create(this,user,ListMember.STATE_AWAITING_CONFIRMATION);
|
||||
public void requestSubscription(User user, boolean skipConfirmation) throws SQLException, MessagingException {
|
||||
var state = skipConfirmation ? ListMember.STATE_SUBSCRIBER : ListMember.STATE_AWAITING_CONFIRMATION;
|
||||
var member = ListMember.create(this,user,state);
|
||||
if (skipConfirmation) return;
|
||||
var token = member.token();
|
||||
try {
|
||||
sendConfirmationRequest(user, token);
|
||||
|
||||
Reference in New Issue
Block a user