Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix the use of captchas on the /msgadmin page. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
43532cd1d563bc66bed5d65d20b04667 |
User & Date: | drh 2018-06-23 19:51:34.225 |
Context
2018-06-23
| ||
19:55 | Do not require Email-Notify permission to operate the /alerts page with a valid subscriberCode. ... (check-in: 15910589 user: drh tags: trunk) | |
19:51 | Fix the use of captchas on the /msgadmin page. ... (check-in: 43532cd1 user: drh tags: trunk) | |
19:36 | Add the /msgadmin page. ... (check-in: 0c4d3c12 user: drh tags: trunk) | |
Changes
Changes to src/email.c.
︙ | ︙ | |||
1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 | */ void msgadmin_page(void){ const char *zAdminEmail = db_get("email-admin",0); unsigned int uSeed; const char *zDecoded; char *zCaptcha = 0; if( zAdminEmail==0 || zAdminEmail[0]==0 ){ style_header("Admin Messaging Disabled"); @ <p>Messages to the administrator are disabled on this repository style_footer(); return; } if( P("submit")!=0 | > | 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 | */ void msgadmin_page(void){ const char *zAdminEmail = db_get("email-admin",0); unsigned int uSeed; const char *zDecoded; char *zCaptcha = 0; login_check_credentials(); if( zAdminEmail==0 || zAdminEmail[0]==0 ){ style_header("Admin Messaging Disabled"); @ <p>Messages to the administrator are disabled on this repository style_footer(); return; } if( P("submit")!=0 |
︙ | ︙ | |||
1843 1844 1845 1846 1847 1848 1849 | if( captcha_needed() ){ uSeed = captcha_seed(); zDecoded = captcha_decode(uSeed); zCaptcha = captcha_render(zDecoded); } style_header("Message To Administrator"); form_begin(0, "%R/msgadmin"); | | | 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 | if( captcha_needed() ){ uSeed = captcha_seed(); zDecoded = captcha_decode(uSeed); zCaptcha = captcha_render(zDecoded); } style_header("Message To Administrator"); form_begin(0, "%R/msgadmin"); @ <p>Enter a message to the repository administrator below:</p> @ <table class="subscribe"> if( zCaptcha ){ @ <tr> @ <td class="form_label">Security Code:</td> @ <td><input type="text" name="captcha" value="" size="10"> @ <input type="hidden" name="captchaseed" value="%u(uSeed)"></td> @ </tr> |
︙ | ︙ |