Moodle authentication plugin for Macaroons

config.html 888B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. if(!isset($config->email_config)) {
  3. $config->email_config = '';
  4. }
  5. if(!isset($config->secret)) {
  6. $config->secret = '';
  7. }
  8. ?>
  9. <table cellspacing="0" cellpadding="5" border="0">
  10. <tr>
  11. <td colspan="3">
  12. <h3>Macaroons configuration</h3>
  13. </td>
  14. </tr>
  15. <tr>
  16. <td align="right">
  17. <label for="secret">Secret</label>
  18. </td>
  19. <td>
  20. <input name="secret" id="secret" type="text" size="50" value="<?php echo $config->secret; ?>" />
  21. </td>
  22. <td>The secret your macaroon was signed with</td>
  23. </tr>
  24. <tr>
  25. <td align="right">
  26. <label for="email_config">E-mail template</label>
  27. </td>
  28. <td>
  29. <input name="email_config" id="email_config" type="text" size="50" value="<?php echo $config->email_config; ?>" />
  30. </td>
  31. <td>Template for emails. Available placeholders are {{firstname}} and {{lastname}}.<br />
  32. eg: {{firstname}}.{{lastname}}@company.tld</td>
  33. </tr>
  34. </table>