Prepare for ubuntu22 murdering openssl #120

Merged
floatingghost merged 4 commits from otp-build-modification into develop 2022-07-27 21:48:14 +00:00
2 changed files with 16 additions and 4 deletions
Showing only changes of commit f036674fff - Show all commits

View file

@ -50,6 +50,21 @@ pipeline:
- mix local.rebar --force
- mix format --check-formatted
build:
image: akkoma/ci-base:latest
<<: *on-pr-open
environment:
MIX_ENV: test
POSTGRES_DB: pleroma_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
DB_HOST: postgres
commands:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
test:
image: akkoma/ci-base:latest
<<: *on-pr-open

View file

@ -663,8 +663,6 @@ def force_password_reset(user), do: update_password_reset_pending(user, true)
# Used to auto-register LDAP accounts which won't have a password hash stored locally
def register_changeset_ldap(struct, params = %{password: password})
when is_nil(password) do
params = Map.put_new(params, :accepts_chat_messages, true)
params =
if Map.has_key?(params, :email) do
Map.put_new(params, :email, params[:email])
@ -676,8 +674,7 @@ def register_changeset_ldap(struct, params = %{password: password})
|> cast(params, [
:name,
:nickname,
:email,
:accepts_chat_messages
:email
])
|> validate_required([:name, :nickname])
|> unique_constraint(:nickname)