312 Commits

Author SHA1 Message Date
Jamie Cameron
ce5555d58d Remove option to do an HTTP redirect, as it's better done in JS 2022-08-17 00:10:20 -07:00
Jamie Cameron
4046923ec8 Drop hide_admin_url config option, as it's being obsoleted by JS-based redirects 2022-08-17 00:05:44 -07:00
iliajie
befca9dc6b Revert "Merge branch 'master' of github.com:webmin/webmin"
This reverts commit 81d7399 in favor of an upcoming PR
2022-08-14 00:41:59 +03:00
iliajie
dea053cde2 Fix to redirect without message or show it if JavaScript is disabled 2022-08-13 21:48:30 +03:00
Jamie Cameron
6bb89a84fc Redirect to https with Javascript 2022-08-13 09:34:03 -07:00
iliajie
7265005c53 Fix miniserv message sent on reloads 2022-08-02 13:34:12 +03:00
Jamie Cameron
0872ecbfcf Log something on shutdown 2022-07-02 15:04:29 -07:00
luz paz
3e6142f098 Fix user and non-user facing typos 2022-06-29 07:17:11 -04:00
Jamie Cameron
1024adc6af Fix addition of --nofork arg 2022-06-18 11:03:59 -07:00
Jamie Cameron
5063d29ac8 When restarting, don't fork again 2022-06-17 15:54:44 -07:00
Jamie Cameron
365932d538 Add option to kill stuck processes https://forum.virtualmin.com/t/webmin-process-stay-here-forever/114607/23 2022-04-10 18:14:51 -07:00
Jamie Cameron
f35b08dc94 Ensure socket is closed after an error 00~https://github.com/webmin/webmin/issues/158401~ 2022-01-28 15:39:57 -08:00
Jamie Cameron
73c0209111 Fix duplicate import 2021-12-08 08:51:28 -08:00
Jamie Cameron
81d0461cca Always require authentication, even if no users file is defined https://forum.virtualmin.com/t/webmin-broken-miniserv-config-leads-to-authentication-without-password/112160/2 2021-09-08 11:25:35 -07:00
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