Compare commits

..

15 commits

Author SHA1 Message Date
ccf2d61d84
WIP feat: account live view - basic functionality
Some checks failed
continuous-integration/drone/push Build is failing
2025-07-17 22:16:22 +02:00
490b2c2f68
feat: account live view - generated files 2025-07-17 21:37:36 +02:00
Renovate Bot
d620e9077a chore(deps): update mix dependencies
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-17 18:07:01 +00:00
7aa53dc9ef chore: Remove version from docker-compose.yml
Some checks reported errors
continuous-integration/drone/push Build was killed
2025-07-17 19:59:54 +02:00
aa843933f9
feat: migration to liveview 1.1 2025-07-17 19:44:12 +02:00
4dd114c22a Merge pull request 'migrate to phoenix 1.8 closes #94' (#95) from phoenix_1.8 into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #95
2025-07-17 18:16:51 +02:00
2255dfbf6e
feat: migration to phoenix 1.8 - fix formatting
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-17 18:01:14 +02:00
c2cb75a32b
feat: migration to phoenix 1.8 - fix tests broken by redirects 2025-07-17 18:01:14 +02:00
acaa12fea6
feat: migration to phoenix 1.8 - fix PropertyLive.Form 2025-07-17 18:01:13 +02:00
15d6fd38c9
feat: migration to phoenix 1.8 - merge old live views into new live views 2025-07-17 18:01:13 +02:00
afda276d22
feat: migration to phoenix 1.8 - generate new ash live views 2025-07-17 18:01:13 +02:00
0334260de5
feat: migration to phoenix 1.8 - merge changed files 2025-07-17 18:01:12 +02:00
50832da885
feat: migration to phoenix 1.8 - overwrite unchanged files 2025-07-17 17:51:44 +02:00
d89b1d1cc0 Merge pull request 'chore(deps): update ghcr.io/sebadob/rauthy docker tag to v0.31.2' (#93) from renovate/ghcr.io-sebadob-rauthy-0.x into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #93
2025-07-17 15:09:59 +02:00
Renovate Bot
8cb023dc61 chore(deps): update ghcr.io/sebadob/rauthy docker tag to v0.31.2
All checks were successful
continuous-integration/drone/push Build is passing
2025-07-17 00:32:13 +00:00
2 changed files with 6 additions and 15 deletions

View file

@ -99,7 +99,7 @@ defmodule Mv.Accounts.User do
changeset
|> Ash.Changeset.change_attribute(:email, user_info["preferred_username"])
|> Ash.Changeset.change_attribute(:oidc_id, user_info["sub"] || user_info["id"])
|> Ash.Changeset.change_attribute(:oidc_id, user_info["id"])
end
end
end

View file

@ -12,28 +12,22 @@ defmodule MvWeb.UserLive.Form do
<.form for={@form} id="user-form" phx-change="validate" phx-submit="save">
<.input field={@form[:email]} label={gettext("Email")} required type="email" />
<%= if @user do %>
<div class="mt-4 p-4 bg-blue-50 rounded-lg">
<p class="text-sm text-blue-800">
<strong>{gettext("Note")}:</strong> {gettext(
"Password can only be changed through authentication functions."
)}
<strong>{gettext("Note")}:</strong> {gettext("Password can only be changed through authentication functions.")}
</p>
</div>
<% else %>
<div class="mt-4 p-4 bg-yellow-50 rounded-lg">
<p class="text-sm text-yellow-800">
<strong>{gettext("Note")}:</strong> {gettext(
"Users created here will need to set their password through the authentication system."
)}
<strong>{gettext("Note")}:</strong> {gettext("Users created here will need to set their password through the authentication system.")}
</p>
</div>
<% end %>
<.button phx-disable-with={gettext("Saving...")} variant="primary">
{gettext("Save User")}
</.button>
<.button phx-disable-with={gettext("Saving...")} variant="primary">{gettext("Save User")}</.button>
<.button navigate={return_path(@return_to, @user)}>{gettext("Cancel")}</.button>
</.form>
</Layouts.app>
@ -91,10 +85,7 @@ defmodule MvWeb.UserLive.Form do
if user do
AshPhoenix.Form.for_update(user, :update_user, domain: Mv.Accounts, as: "user")
else
AshPhoenix.Form.for_create(Mv.Accounts.User, :create_user,
domain: Mv.Accounts,
as: "user"
)
AshPhoenix.Form.for_create(Mv.Accounts.User, :create_user, domain: Mv.Accounts, as: "user")
end
assign(socket, form: to_form(form))