games647 / FlexibleLogin

A Sponge minecraft server plugin for second factor authentication
https://forums.spongepowered.org/t/8872
MIT License
87 stars 23 forks source link

Mail reset password cannot send password #161

Open DJmanito opened 5 years ago

DJmanito commented 5 years ago

I set the email reset password, and the email was successfully sent, but the variable set in config was sent without being converted. Use: spongeforge-1.12.2-2768-7.1.6-RC3614 flexiblelogin-0.18-SNAPSHOT 1

DJmanito commented 5 years ago

config: emailConfiguration {

Username for the account you want to the email from

account="*****@qq.com"
# Email contents. You can use HTML here
contentTemplate {
    arguments {}
    closeArg="}"
    content {
        text="New password for Builder{name=player, optional=true} on Minecraft server Builder{name=server, optional=true}: Builder{name=, optional=true}"
    }
    openArg="{"
    options {
        closeArg="}"
        openArg="{"
    }
}
# Is password recovery using an email allowed
enabled=false
# Mail server
host="smtp.qq.com"
# Password for the account you want to the email from
password=********
# SMTP Port for outgoing messages
port=465
# Displays as sender in the email client
senderName=MineCraft-OfMine
# Email subject/title
subjectTemplate {
    arguments {}
    closeArg="}"
    content {
        text="Your new Password"
    }
    openArg="{"
    options {
        closeArg="}"
        openArg="{"
    }
}
# Email contents. You can use HTML here
text="New password for %player% on Minecraft server %server%: %password%"

}

SkrillexAkaCraft commented 5 years ago

same issue here, the main body doesn't Give any info about a new password nor does it do anything about player name