Skip to content

Mailuser cannot login on develop branch, "Otp method unknown"

Summary

see Subject

Steps to reproduce

  • Setup an Ubuntu 22.04 minimal VM image and ssh into it
  • cd /tmp
  • git clone https://git.ispconfig.org/ispconfig/ispconfig-autoinstaller.git
  • cd ispconfig-autoinstaller
  • git checkout ubuntu-22
  • sed -i -e '/8.1/s/8.1/7.4/g' lib/os/class.ISPConfigUbuntu2204OS.inc.php
  • ./ispc3-ai.sh --channel=dev --use-ftp-ports=40110-40210 --unattended-upgrades=autoclean,reboot
  • reboot the VM
  • create a customer, domain, and mailuser
  • logout of ispconfig
  • try to login using the mailuser

Error message: "Ota method unknown".

Correct behaviour

The user should be logged in.

Environment

Proposed fix

In interface/web/login/index.php, line 143, the line should be changed to

if(isset($user['otp_type']) and $user['otp_type'] != 'none') {

since $user['ota_type'] is probably always empty for mailusers, and not "none".

Edited by Jens