Commit Graph

298 Commits

Author SHA1 Message Date
Jamie Cameron
37a4f57196 Add option to preload arbitrary modules 2021-07-06 11:02:05 -07:00
Jamie Cameron
383b26c28a Support for session login redirect in miniserv 2021-05-28 20:50:26 -07:00
Jamie Cameron
e281083c85 baseuser is needed when validating a session 2021-05-23 22:35:19 -07:00
Jamie Cameron
9efec5c620 Add extra check for a session for a user that no longer exists 2021-05-20 22:33:23 -07:00
Jamie Cameron
88659933f7 Add support for twofactor in usermin via tokens in a separate file 2021-05-15 19:38:17 -07:00
Ilia Rostovtsev
e79a678a78 Don't test for file existence, just return undef
49f75d239a (r48753651)
2021-03-26 19:26:31 +03:00
Ilia Rostovtsev
49f75d239a Fix bad design that I shouldn't have ever added #1466 2021-03-26 15:37:12 +03:00
Jamie Cameron
0d17708cdd Better handle the case where no theme is in use 2021-01-25 20:24:55 -08:00
Jamie Cameron
f3900696bd Store the current theme in an environment variable, for passing to CGIs 2021-01-23 22:48:21 -08:00
Ilia Rostovtsev
8f600c292e Add better styling for error messages in UI, and correspond with minserv
5a53f18b8c
2021-01-17 22:28:50 +03:00
Ilia Rostovtsev
5a53f18b8c Add better error messages and abstrac formatting 2021-01-17 20:09:08 +03:00
Ilia Rostovtsev
ce156cc4dc Add better error description for the cookies error
https://sourceforge.net/p/webadmin/discussion/600155/thread/0b15f9c4/?limit=25#d12b
2021-01-17 16:09:14 +03:00
Jamie Cameron
c6493ed65f THEME_ROOT can just be set to the global theme directory, since there are no users when running background commands 2021-01-09 12:01:47 -08:00
Jamie Cameron
2e4bc732bf The preroots variable already contains all theme roots, so just use it instead of attempting to re-construct from the current user 2021-01-09 12:00:23 -08:00
Ilia Rostovtsev
4fef82323e Fix detection of theme root for sudo capable users
https://forum.virtualmin.com/t/error-perl-execution-failed-undefined-subroutine-main-authentic-called-at-usr-share-webmin-authentic-theme-index-cgi-line-12/108864
https://sourceforge.net/p/webadmin/bugs/5442
2021-01-09 21:02:24 +03:00
Jamie Cameron
f881943377 Add option for max connections per class-C network 2020-12-29 15:59:43 -08:00
Jamie Cameron
026c8cbf7d Add support for limiting number of connections from the same IP address http://www.virtualmin.com/node/70253 2020-12-29 14:24:16 -08:00
Jamie Cameron
1163f3a7f4 Always use IPv6 if a v6 address was given https://github.com/webmin/webmin/issues/1420 2020-12-28 14:03:41 -08:00
Jamie Cameron
f7b9fb13cd Add a timeout for long post requests 2020-12-27 19:38:18 -08:00
Jamie Cameron
628f57e232 Make error message more useful 2020-12-19 16:50:32 -08:00
Ilia Rostovtsev
86ad678509 Add last new line 2020-12-09 15:18:19 +03:00
Ilia Rostovtsev
d44a65411e Add getenv sub 2020-12-09 15:17:20 +03:00
Ilia Rostovtsev
3f11cd926b Add theme root when executing Webmin command
35b4e4716f (commitcomment-44938628)
2020-12-09 13:37:03 +03:00
Jamie Cameron
5e4b529cb2 Do fail hard if the default SSL cert can't be loaded 2020-12-06 21:35:28 -08:00
Jamie Cameron
8a34f7b6a7 Fail more gracefully if SSL cert cannot be loaded 2020-12-06 21:31:27 -08:00
Ilia Rostovtsev
35b4e4716f Include theme root to env
https://sourceforge.net/p/webadmin/bugs/5430/
2020-12-06 13:46:13 +03:00
Ilia Rostovtsev
2c0ac4fa56 Fix color for errors 2020-11-09 14:50:51 +03:00
Ilia Rostovtsev
b02acf87e5 Fix to escape other params 2020-10-30 19:40:49 +03:00
Ilia Rostovtsev
ec6e681818 Fix to urlize password for 2FA https://github.com/webmin/webmin/issues/1317#issuecomment-718707491
https://www.virtualmin.com/node/70081
https://sourceforge.net/p/webadmin/bugs/5418
2020-10-29 16:10:38 +03:00
Ilia Rostovtsev
cf6eeadaa3 Fix to stop false positive syslogging on page reload 2020-10-16 19:59:53 +03:00
Ilia Rostovtsev
523bdc0066 Cosmetic changes to previous commit 26008394a9 2020-10-16 19:27:14 +03:00
Ilia Rostovtsev
26008394a9 Fix to prevent count failed when empty 2FA token is sent
b68a47fa0d
511e70aa97
2020-10-16 17:48:16 +03:00
Ilia Rostovtsev
0ac26ba423 Fix comment typo 2020-10-16 15:45:31 +03:00
Jamie Cameron
f876411cdc Merge branch 'master' of github.com:webmin/webmin 2020-10-15 20:23:39 -07:00
Jamie Cameron
140c41e48a Remove debug messages 2020-10-15 20:20:26 -07:00
Ilia Rostovtsev
b68a47fa0d Fix to prevent logging when empty 2FA token is sent 511e70aa97 2020-10-15 13:19:07 +03:00
Ilia Rostovtsev
511e70aa97 Add to support to display two factor authentication field selectively
https://virtualmin.com/node/70011
2020-10-14 19:02:37 +03:00
Ilia Rostovtsev
7b8dfb7f7b Beautify miniserv error output 2020-09-14 14:57:39 +03:00
Jamie Cameron
e86dd731fb Redirect to port 443 if port 80 was hit in SSL mode 2020-09-13 15:45:03 -07:00
Jamie Cameron
048ae20b37 Drop 443 from port if not needed 2020-09-10 12:27:39 -07:00
Jamie Cameron
7348723545 Just log a warning if a per-IP cert doesn't exist, instead of crashing out https://www.virtualmin.com/node/69691 2020-08-14 17:01:13 -07:00
Ilia Rostovtsev
49353baa58 If the redirect_prefix exists change redirect base to include the prefix #1271 2020-07-24 18:02:52 +03:00
Jamie Cameron
e18884150b Remove message about PAM perl module not being loaded 2020-07-18 10:52:50 -07:00
Jamie Cameron
11a8bd2e55 Fix inverted cleanup of child PIDs 2020-07-10 17:35:46 -07:00
Jamie Cameron
d9093ebefc Simplify an obsolete error message 2020-07-05 14:41:59 -07:00
Jamie Cameron
1ccc4e4cef Don't log to stderr if an unparsable message comes in SSL mode 2020-07-05 14:39:18 -07:00
Jamie Cameron
8f61b43253 Check flag files more often 2020-07-05 11:00:13 -07:00
Jamie Cameron
07f2c8683a Always enable stop-flag feature 2020-07-04 20:54:45 -07:00
Jamie Cameron
645daaf0cd Needed to show error messages properly in non-SSL mode 2020-06-30 15:02:29 -07:00
Jamie Cameron
f35a49bac8 Hack to handle the case where unicode characters slip through and need to be converted to multi-bytes before printing 2020-06-28 16:54:49 -07:00