AuthMe / AuthMeReloaded

The best authentication plugin for the Bukkit/Spigot API!
https://www.spigotmc.org/resources/authmereloaded.6269/
GNU General Public License v3.0
628 stars 516 forks source link

Verification code improvements #1388

Open hex3l opened 6 years ago

hex3l commented 6 years ago

Follow of this pull request and related issue #1311

@ljacqu

  • We should discuss about error handling. If an email cannot be sent (EmailService#sendVerificationMail returns a boolean indicating success) we do not handle that in the verification code service. This blocks a user from being able to do anything until emails can be sent.
k-jiang commented 6 years ago

New suggestion:

  1. Add options to allow /changepassword or /changeemail becoming effective immediately right after /verification, so that ppl don't have to do /changepassword first, then /verification, then /changepassword again, eliminating confusions.
k-jiang commented 6 years ago
  1. Require password / email confirmation while doing /register [password] [email]. With registration.type: 'PASSWORD' and registration.secondArg: 'EMAIL_MANDATORY' on, ask the player to type their password and email again to confirm it so no mistake were made.