DamnRegister is a plugin to register website users from inside minecraft. It includes a RPC module for drupal that work as the second part, but depending on you website system you might be able to use this even without the drupal part.
A user can type /register [email protected] and this plugin will connect to drupal and create user with his minecraft username and email given. Drupal will then send an email to the user with a link they can use to confirm the email with and reset the password.
The configuration makes it possible to usr any url and any POST body template. Responses from the server can also be mapped to different in-game messages.
if you need GET or something else find me (Faua) on this minecraft server damnation.eu (or simply join the server for awesomeness/fun)
damnregister.register to allow them to use the command
The default config install should be very easy to adapt to drupal module where you just need to change the "<string>secret</string>" part to fit the secret you have configured in drupal.
But in case you need it for some other websystem this is how you could adapt it for an imaginary php script that takes in the username and email with a newline as a separator, and returns with and simple status text.
#url to call when a user run /register url: http://localhost/myowncallback.php #body is the url which is sent to the url # %1$s will be replaced with the minecraft username # %2$s will be replaced with with the first argument passed to the /register method body: "%1$s\n%2$s" answers: - response: "OK" answer: A mail has been sent to you with further information - response: "INVALID EMAIL" answer: Your email is not valid #Any responses not defined here will result in outputting the response to the log and displaying an error message asking the user to contact an admin.
Source can be found on github