diff --git a/manifest.toml b/manifest.toml index f7e9d77..17e1cf6 100644 --- a/manifest.toml +++ b/manifest.toml @@ -40,7 +40,7 @@ ram.runtime = "50M" help.en = "Choose whether the app should be accessible only for your YunoHost users or for everyone." help.fr = "Choisissez si l'application doit ĂȘtre accessible uniquement pour vos utilisateurs YunoHost ou pour tout le monde." type = "group" - default = false + default = all_users [resources] [resources.sources.main] diff --git a/sources/patches/main-00-ldap-auth.patch b/sources/patches/main-00-ldap-auth.patch index 981f010..2aaf412 100644 --- a/sources/patches/main-00-ldap-auth.patch +++ b/sources/patches/main-00-ldap-auth.patch @@ -130,7 +130,7 @@ index 00000000..eb8b1149 + if (!$user) { + $user = (new User()) + ->setUsername(\reset($email)) -+ ->setPassword(\random_bytes(32)) ++ ->setPassword(\bin2hex(\random_bytes(32))) + ->setActive(true) + ->setUpdatedAt(new \DateTimeImmutable()) + ;