Update password handling and session methods

This commit is contained in:
netkas 2025-01-05 01:23:43 -05:00
parent 8b9896f196
commit 85814913e4
11 changed files with 239 additions and 70 deletions

View file

@ -228,13 +228,14 @@
}
/**
* Determines if the server is external.
* Determines if the user is considered external by checking if the username is 'host' and the server
* is not the same as the domain from the configuration.
*
* @return bool True if the server is external, false otherwise.
* @return bool True if the user is external, false otherwise.
*/
public function isExternal(): bool
{
return $this->server === 'host';
return $this->username === 'host' && $this->server !== Configuration::getInstanceConfiguration()->getDomain();
}
/**