Moodle authentication plugin for Macaroons

config.html 1.2KB

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