Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-logon / admin-logon do a redirect if your site is https - and task fails. #445

Open
timgil opened this issue Sep 7, 2023 · 0 comments
Assignees

Comments

@timgil
Copy link

timgil commented Sep 7, 2023

  • moosh version: 1.13
  • moodle version: 4.1.5+
    • database: MariaDB Ver 15.1 Distrib 10.11.3-MariaDB, for debian-linux-gnu (x86_64)
  • php version: 8.0.29 also tried with 8.1
  • operating system: Debian 12

FRESH Moodle 4.1.5+ install - no additional plugins installed and using default boost theme.

Actual behaviour

sudo -u www-data moosh -v user-login fredbloggs

returns html saying that the server is not available at this address and needs to be accessed - at the https version. The html gives a link to click to redirect -but of course that is not useable in Moosh.

Expected behaviour

sudo -u www-data moosh -v user-login fredbloggs

should return a session is such as:

sudo -u www-data moosh -v user-login freddbloggs
MoodleSession:u66gmjd66pemqsc2eadl3k8vt3

It seems moosh SHOULD use https to make the connection if the site URL in the moodle config.php file has an https address but it doesn't.

Steps to reproduce

Moodle site running https
Moosh installed
Move to Moodle install directory
moosh user-login username

@mi7chal mi7chal self-assigned this Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants