Add change password form

This commit is contained in:
Alex
2022-11-30 20:55:38 +01:00
parent f9e1acd5b2
commit e8eaef27c5
9 changed files with 220 additions and 132 deletions

View File

@@ -15,4 +15,8 @@ This is the first version of the open-source project. Feel free to contribute!
_Security updates_
- Added `ENABLE_MAILBOX_ROUTE`, `MAILBOX_USER` and `MAILBOX_PASSWORD` environment variables to enable/disable route to local mailbox (`/dev/mailbox`) and basic auth (optional)
- Restricted `/users/register` route if `ENABLE_ACCOUNT_CREATION` is false
- Restricted `/users/register` route if `ENABLE_ACCOUNT_CREATION` is false
## v1.2.0
- Added password change form in settings

View File

@@ -17,11 +17,11 @@ defmodule ClaperWeb.UserRegistrationController do
def create(conn, %{"user" => user_params}) do
case Accounts.register_user(user_params) do
{:ok, user} ->
{:ok, _} =
Accounts.deliver_user_confirmation_instructions(
user,
&Routes.user_confirmation_url(conn, :update, &1)
)
#{:ok, _} =
# Accounts.deliver_user_confirmation_instructions(
# user,
# &Routes.user_confirmation_url(conn, :update, &1)
# )
conn
|> put_flash(:info, "User created successfully.")

View File

@@ -1,47 +0,0 @@
defmodule ClaperWeb.UserSettingsLive.FormComponent do
use ClaperWeb, :live_component
alias Claper.Accounts
@impl true
def update(assigns, socket) do
email_changeset = Accounts.User.email_changeset(%Accounts.User{}, %{})
{:ok,
socket
|> assign(:email_changeset, email_changeset)
|> assign(assigns)}
end
@impl true
def handle_event("save", %{"action" => "update_email"} = params, socket) do
%{"user" => user_params} = params
user = socket.assigns.current_user
case Accounts.apply_user_email(user, user_params) do
{:ok, applied_user} ->
Accounts.deliver_update_email_instructions(
applied_user,
user.email,
&Routes.user_settings_url(socket, :confirm_email, &1)
)
{:noreply,
socket
|> put_flash(
:info,
gettext("A link to confirm your email change has been sent to the new address.")
)
|> push_redirect(to: socket.assigns.return_to)}
{:error, changeset} ->
{:noreply, assign(socket, :email_changeset, changeset)}
end
end
@impl true
def handle_event("validate", _params, socket) do
{:noreply, socket}
end
end

View File

@@ -1,13 +0,0 @@
<div>
<%= if @action == :edit_email do %>
<.form let={f} for={@email_changeset} phx-target={@myself} phx-submit="save" id="update_email" class="mt-5 md:flex md:items-end">
<%= hidden_input f, :action, name: "action", value: "update_email" %>
<ClaperWeb.Component.Input.email form={f} key={:email} name={gettext "Email"} required="true" />
<%= submit gettext("Save"), phx_disable_with: "Saving...", class: "mt-2 w-full h-14 inline-flex transition-all items-center justify-center px-4 py-2 shadow-sm font-medium rounded-md text-white bg-black hover:bg-primary-500 md:mt-0 md:ml-3 md:w-auto md:text-sm" %>
</.form>
<% end %>
</div>

View File

@@ -12,8 +12,9 @@ defmodule ClaperWeb.UserSettingsLive.Show do
end
email_changeset = Accounts.User.email_changeset(%Accounts.User{}, %{})
password_changeset = Accounts.User.password_changeset(%Accounts.User{}, %{})
{:ok, socket |> assign(:email_changeset, email_changeset)}
{:ok, socket |> assign(:email_changeset, email_changeset) |> assign(:password_changeset, password_changeset)}
end
@impl true
@@ -30,6 +31,15 @@ defmodule ClaperWeb.UserSettingsLive.Show do
)
end
defp apply_action(socket, :edit_password, _params) do
socket
|> assign(:page_title, gettext("Update your password"))
|> assign(
:page_description,
gettext("Change the password used to access your account.")
)
end
defp apply_action(socket, :show, _params) do
socket
|> assign(:page_title, gettext("Settings"))
@@ -62,6 +72,29 @@ defmodule ClaperWeb.UserSettingsLive.Show do
end
end
@impl true
def handle_event("save", %{"action" => "update_password"} = params, socket) do
%{"user" => user_params} = params
%{"current_password" => password} = user_params
user = socket.assigns.current_user
case Accounts.update_user_password(user, password, user_params) do
{:ok, applied_user} ->
{:noreply,
socket
|> put_flash(
:info,
gettext("Your password has been updated.")
)
|> push_redirect(to: Routes.user_settings_show_path(socket, :show))}
{:error, changeset} ->
{:noreply, assign(socket, :password_changeset, changeset)}
end
end
@impl true
def handle_event("validate", _params, socket) do
{:noreply, socket}

View File

@@ -24,7 +24,30 @@
<%= hidden_input f, :action, name: "action", value: "update_email" %>
<ClaperWeb.Component.Input.email form={f} key={:email} name={gettext "Email"} required="true" />
<%= submit gettext("Save"), phx_disable_with: "Saving...", class: "mt-2 w-full h-14 inline-flex transition-all items-center justify-center px-4 py-2 shadow-sm font-medium rounded-md text-white bg-black hover:bg-primary-500 md:mt-0 md:ml-3 md:w-auto md:text-sm" %>
</.form>
</div>
</.live_component>
<% end %>
<%= if @live_action in [:edit_password] do %>
<.live_component module={ClaperWeb.ModalComponent}
class="hidden"
id="modal-wrapper"
title={@page_title}
description={@page_description}
return_to={Routes.user_settings_show_path(@socket, :show)}>
<div>
<.form let={f} for={@password_changeset} phx-submit="save" id="update_password" class="mt-5 md:flex md:items-end gap-x-2">
<%= hidden_input f, :action, name: "action", value: "update_password" %>
<ClaperWeb.Component.Input.password form={f} key={:current_password} name={gettext "Current password"} required="true" />
<ClaperWeb.Component.Input.password form={f} key={:password} name={gettext "New password"} required="true" />
<%= submit gettext("Save"), phx_disable_with: "Saving...", class: "mt-2 w-full h-14 inline-flex transition-all items-center justify-center px-4 py-2 shadow-sm font-medium rounded-md text-white bg-black hover:bg-primary-500 md:mt-0 md:ml-3 md:w-auto md:text-sm" %>
</.form>
</div>
@@ -53,9 +76,19 @@
<%= live_patch gettext("Change"), to: Routes.user_settings_show_path(@socket, :edit_email), class: "rounded-md font-medium text-purple-600 hover:text-purple-500" %>
</span>
</dd>
<dt class="text-sm font-medium text-gray-500">
<%= gettext "Password" %>
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
<span class="flex-grow">********</span>
<span class="ml-4 flex-shrink-0">
<%= live_patch gettext("Change"), to: Routes.user_settings_show_path(@socket, :edit_password), class: "rounded-md font-medium text-purple-600 hover:text-purple-500" %>
</span>
</dd>
</div>
</dl>
</div>
</div>
</div>
</div>
</div>

View File

@@ -11,14 +11,13 @@ msgid ""
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:35
#: lib/claper_web/live/user_settings_live/show.ex:45
#: lib/claper_web/live/user_settings_live/show.html.heex:5
#: lib/claper_web/templates/layout/_user_menu.html.heex:2
msgid "Settings"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/form_component.html.heex:7
#: lib/claper_web/live/user_settings_live/show.html.heex:26
#: lib/claper_web/templates/user_registration/new.html.heex:22
#: lib/claper_web/templates/user_session/new.html.heex:34
@@ -36,7 +35,8 @@ msgid "Oops, check that all fields are filled in correctly."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:53
#: lib/claper_web/live/user_settings_live/show.html.heex:76
#: lib/claper_web/live/user_settings_live/show.html.heex:86
msgid "Change"
msgstr ""
@@ -46,7 +46,7 @@ msgid "Code"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:48
#: lib/claper_web/live/user_settings_live/show.html.heex:71
msgid "Email address"
msgstr ""
@@ -56,7 +56,7 @@ msgid "Logout"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:38
#: lib/claper_web/live/user_settings_live/show.html.heex:61
msgid "Personal informations"
msgstr ""
@@ -71,7 +71,7 @@ msgid "We sent you an email at"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:41
#: lib/claper_web/live/user_settings_live/show.html.heex:64
msgid "Your personal informations only visible by you"
msgstr ""
@@ -177,7 +177,7 @@ msgid "Starting on"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:204
#: lib/claper_web/live/event_live/form_component.ex:203
msgid "Updated successfully"
msgstr ""
@@ -204,7 +204,7 @@ msgid "Return to home"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:176
#: lib/claper_web/live/event_live/form_component.ex:175
msgid "Created successfully"
msgstr ""
@@ -245,29 +245,28 @@ msgstr ""
#: lib/claper_web/live/event_live/form_component.html.heex:12
#: lib/claper_web/live/event_live/form_component.html.heex:19
#: lib/claper_web/live/poll_live/form_component.html.heex:45
#: lib/claper_web/live/user_settings_live/form_component.html.heex:9
#: lib/claper_web/live/user_settings_live/show.html.heex:28
#: lib/claper_web/live/user_settings_live/show.html.heex:51
msgid "Save"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/form_component.ex:34
#: lib/claper_web/live/user_settings_live/show.ex:56
#: lib/claper_web/live/user_settings_live/show.ex:66
msgid "A link to confirm your email change has been sent to the new address."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:29
#: lib/claper_web/live/user_settings_live/show.ex:30
msgid "Change the email address you want associated with your account."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:26
#: lib/claper_web/live/user_settings_live/show.ex:27
msgid "Update your email"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:9
#: lib/claper_web/notifiers/user_notifier.ex:12
#: lib/claper_web/templates/user_notifier/magic.html.heex:10
msgid "Connect to Claper"
msgstr ""
@@ -278,7 +277,7 @@ msgid "ACCESS TO MY ACCOUNT"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:25
#: lib/claper_web/notifiers/user_notifier.ex:34
msgid "Update email instructions"
msgstr ""
@@ -345,12 +344,12 @@ msgid "or drag and drop"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:213
#: lib/claper_web/live/event_live/form_component.ex:212
msgid "You have selected an incorrect file type"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:212
#: lib/claper_web/live/event_live/form_component.ex:211
msgid "Your file is too large"
msgstr ""
@@ -380,7 +379,7 @@ msgid "Title of your poll"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:214
#: lib/claper_web/live/event_live/form_component.ex:213
msgid "Upload failed"
msgstr ""
@@ -544,8 +543,8 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/show.ex:50
#: lib/claper_web/live/event_live/show.ex:188
#: lib/claper_web/live/event_live/show.ex:203
#: lib/claper_web/live/event_live/show.ex:187
#: lib/claper_web/live/event_live/show.ex:202
msgid "You have been banned from this event"
msgstr ""
@@ -611,7 +610,7 @@ msgid "Click on the <span style='font-weight: 700'>create button</span> on your
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:17
#: lib/claper_web/notifiers/user_notifier.ex:23
msgid "Next steps to boost your presentations"
msgstr ""
@@ -716,11 +715,13 @@ msgid "Or use the code:"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/templates/user_registration/new.html.heex:27
#: lib/claper_web/templates/user_session/new.html.heex:46
msgid "Create account"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:81
#: lib/claper_web/templates/user_registration/new.html.heex:23
#: lib/claper_web/templates/user_session/new.html.heex:35
msgid "Password"
@@ -735,3 +736,28 @@ msgstr ""
#: lib/claper_web/templates/user_session/new.html.heex:35
msgid "Your password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:39
msgid "Change the password used to access your account."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:48
msgid "Current password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:49
msgid "New password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:36
msgid "Update your password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:89
msgid "Your password has been updated."
msgstr ""

View File

@@ -12,14 +12,13 @@ msgstr ""
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:35
#: lib/claper_web/live/user_settings_live/show.ex:45
#: lib/claper_web/live/user_settings_live/show.html.heex:5
#: lib/claper_web/templates/layout/_user_menu.html.heex:2
msgid "Settings"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/form_component.html.heex:7
#: lib/claper_web/live/user_settings_live/show.html.heex:26
#: lib/claper_web/templates/user_registration/new.html.heex:22
#: lib/claper_web/templates/user_session/new.html.heex:34
@@ -37,7 +36,8 @@ msgid "Oops, check that all fields are filled in correctly."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:53
#: lib/claper_web/live/user_settings_live/show.html.heex:76
#: lib/claper_web/live/user_settings_live/show.html.heex:86
msgid "Change"
msgstr ""
@@ -47,7 +47,7 @@ msgid "Code"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:48
#: lib/claper_web/live/user_settings_live/show.html.heex:71
msgid "Email address"
msgstr ""
@@ -57,7 +57,7 @@ msgid "Logout"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:38
#: lib/claper_web/live/user_settings_live/show.html.heex:61
msgid "Personal informations"
msgstr ""
@@ -72,7 +72,7 @@ msgid "We sent you an email at"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:41
#: lib/claper_web/live/user_settings_live/show.html.heex:64
msgid "Your personal informations only visible by you"
msgstr ""
@@ -178,7 +178,7 @@ msgid "Starting on"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:204
#: lib/claper_web/live/event_live/form_component.ex:203
msgid "Updated successfully"
msgstr ""
@@ -205,7 +205,7 @@ msgid "Return to home"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/event_live/form_component.ex:176
#: lib/claper_web/live/event_live/form_component.ex:175
msgid "Created successfully"
msgstr ""
@@ -246,29 +246,28 @@ msgstr ""
#: lib/claper_web/live/event_live/form_component.html.heex:12
#: lib/claper_web/live/event_live/form_component.html.heex:19
#: lib/claper_web/live/poll_live/form_component.html.heex:45
#: lib/claper_web/live/user_settings_live/form_component.html.heex:9
#: lib/claper_web/live/user_settings_live/show.html.heex:28
#: lib/claper_web/live/user_settings_live/show.html.heex:51
msgid "Save"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/form_component.ex:34
#: lib/claper_web/live/user_settings_live/show.ex:56
#: lib/claper_web/live/user_settings_live/show.ex:66
msgid "A link to confirm your email change has been sent to the new address."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:29
#: lib/claper_web/live/user_settings_live/show.ex:30
msgid "Change the email address you want associated with your account."
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:26
#: lib/claper_web/live/user_settings_live/show.ex:27
msgid "Update your email"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:9
#: lib/claper_web/notifiers/user_notifier.ex:12
#: lib/claper_web/templates/user_notifier/magic.html.heex:10
msgid "Connect to Claper"
msgstr ""
@@ -279,7 +278,7 @@ msgid "ACCESS TO MY ACCOUNT"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:25
#: lib/claper_web/notifiers/user_notifier.ex:34
msgid "Update email instructions"
msgstr ""
@@ -346,12 +345,12 @@ msgid "or drag and drop"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/event_live/form_component.ex:213
#: lib/claper_web/live/event_live/form_component.ex:212
msgid "You have selected an incorrect file type"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:212
#: lib/claper_web/live/event_live/form_component.ex:211
msgid "Your file is too large"
msgstr ""
@@ -381,7 +380,7 @@ msgid "Title of your poll"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/event_live/form_component.ex:214
#: lib/claper_web/live/event_live/form_component.ex:213
msgid "Upload failed"
msgstr ""
@@ -545,8 +544,8 @@ msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/show.ex:50
#: lib/claper_web/live/event_live/show.ex:188
#: lib/claper_web/live/event_live/show.ex:203
#: lib/claper_web/live/event_live/show.ex:187
#: lib/claper_web/live/event_live/show.ex:202
msgid "You have been banned from this event"
msgstr ""
@@ -612,7 +611,7 @@ msgid "Click on the <span style='font-weight: 700'>create button</span> on your
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:17
#: lib/claper_web/notifiers/user_notifier.ex:23
msgid "Next steps to boost your presentations"
msgstr ""
@@ -717,11 +716,13 @@ msgid "Or use the code:"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/templates/user_registration/new.html.heex:27
#: lib/claper_web/templates/user_session/new.html.heex:46
msgid "Create account"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:81
#: lib/claper_web/templates/user_registration/new.html.heex:23
#: lib/claper_web/templates/user_session/new.html.heex:35
msgid "Password"
@@ -736,3 +737,28 @@ msgstr ""
#: lib/claper_web/templates/user_session/new.html.heex:35
msgid "Your password"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:39
msgid "Change the password used to access your account."
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.html.heex:48
msgid "Current password"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.html.heex:49
msgid "New password"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.ex:36
msgid "Update your password"
msgstr ""
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.ex:89
msgid "Your password has been updated."
msgstr ""

View File

@@ -12,14 +12,13 @@ msgstr ""
"Plural-Forms: nplurals=2\n"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:35
#: lib/claper_web/live/user_settings_live/show.ex:45
#: lib/claper_web/live/user_settings_live/show.html.heex:5
#: lib/claper_web/templates/layout/_user_menu.html.heex:2
msgid "Settings"
msgstr "Paramètres"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/form_component.html.heex:7
#: lib/claper_web/live/user_settings_live/show.html.heex:26
#: lib/claper_web/templates/user_registration/new.html.heex:22
#: lib/claper_web/templates/user_session/new.html.heex:34
@@ -37,7 +36,8 @@ msgid "Oops, check that all fields are filled in correctly."
msgstr "Oups, vérifiez que tous les champs sont remplis correctement."
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:53
#: lib/claper_web/live/user_settings_live/show.html.heex:76
#: lib/claper_web/live/user_settings_live/show.html.heex:86
msgid "Change"
msgstr "Changer"
@@ -47,7 +47,7 @@ msgid "Code"
msgstr ""
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:48
#: lib/claper_web/live/user_settings_live/show.html.heex:71
msgid "Email address"
msgstr "Adresse email"
@@ -57,7 +57,7 @@ msgid "Logout"
msgstr "Déconnexion"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:38
#: lib/claper_web/live/user_settings_live/show.html.heex:61
msgid "Personal informations"
msgstr "Informations personnelles"
@@ -72,7 +72,7 @@ msgid "We sent you an email at"
msgstr "Nous vous avons envoyé un email à"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:41
#: lib/claper_web/live/user_settings_live/show.html.heex:64
msgid "Your personal informations only visible by you"
msgstr "Vos informations personnelles ne sont visibles que par vous"
@@ -178,7 +178,7 @@ msgid "Starting on"
msgstr "Commence le"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:204
#: lib/claper_web/live/event_live/form_component.ex:203
msgid "Updated successfully"
msgstr "Mis à jour avec succès"
@@ -205,7 +205,7 @@ msgid "Return to home"
msgstr "Retourner à l'accueil"
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/event_live/form_component.ex:176
#: lib/claper_web/live/event_live/form_component.ex:175
msgid "Created successfully"
msgstr "Mis à jour avec succès"
@@ -246,29 +246,28 @@ msgstr "Supprimer"
#: lib/claper_web/live/event_live/form_component.html.heex:12
#: lib/claper_web/live/event_live/form_component.html.heex:19
#: lib/claper_web/live/poll_live/form_component.html.heex:45
#: lib/claper_web/live/user_settings_live/form_component.html.heex:9
#: lib/claper_web/live/user_settings_live/show.html.heex:28
#: lib/claper_web/live/user_settings_live/show.html.heex:51
msgid "Save"
msgstr "Sauvegarder"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/form_component.ex:34
#: lib/claper_web/live/user_settings_live/show.ex:56
#: lib/claper_web/live/user_settings_live/show.ex:66
msgid "A link to confirm your email change has been sent to the new address."
msgstr "Un lien pour confirmer votre changement d'email a été envoyé à la nouvelle adresse."
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:29
#: lib/claper_web/live/user_settings_live/show.ex:30
msgid "Change the email address you want associated with your account."
msgstr "Modifiez l'email que vous souhaitez associer à votre compte."
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:26
#: lib/claper_web/live/user_settings_live/show.ex:27
msgid "Update your email"
msgstr "Changer votre email"
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:9
#: lib/claper_web/notifiers/user_notifier.ex:12
#: lib/claper_web/templates/user_notifier/magic.html.heex:10
msgid "Connect to Claper"
msgstr "Se connecter à Claper"
@@ -279,7 +278,7 @@ msgid "ACCESS TO MY ACCOUNT"
msgstr "ACCÉDER À MON COMPTE"
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:25
#: lib/claper_web/notifiers/user_notifier.ex:34
msgid "Update email instructions"
msgstr "Instructions de modification d'email"
@@ -346,12 +345,12 @@ msgid "or drag and drop"
msgstr "ou glisser-déposer"
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/event_live/form_component.ex:213
#: lib/claper_web/live/event_live/form_component.ex:212
msgid "You have selected an incorrect file type"
msgstr "Vous avez sélectionné un type de fichier incorrect"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/form_component.ex:212
#: lib/claper_web/live/event_live/form_component.ex:211
msgid "Your file is too large"
msgstr "Votre fichier est trop volumineux"
@@ -381,7 +380,7 @@ msgid "Title of your poll"
msgstr "Titre de votre sondage"
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/event_live/form_component.ex:214
#: lib/claper_web/live/event_live/form_component.ex:213
msgid "Upload failed"
msgstr "Échec du chargement"
@@ -545,8 +544,8 @@ msgstr "Bloquer cet utilisateur supprimera tous ses messages et il ne pourra pas
#, elixir-autogen, elixir-format
#: lib/claper_web/live/event_live/show.ex:50
#: lib/claper_web/live/event_live/show.ex:188
#: lib/claper_web/live/event_live/show.ex:203
#: lib/claper_web/live/event_live/show.ex:187
#: lib/claper_web/live/event_live/show.ex:202
msgid "You have been banned from this event"
msgstr "Vous avez été banni de cet événement"
@@ -612,7 +611,7 @@ msgid "Click on the <span style='font-weight: 700'>create button</span> on your
msgstr "Cliquez sur le bouton <span style='font-weight : 700'>créer</span> sur votre tableau de bord"
#, elixir-autogen, elixir-format
#: lib/claper_web/notifiers/user_notifier.ex:17
#: lib/claper_web/notifiers/user_notifier.ex:23
msgid "Next steps to boost your presentations"
msgstr "Les prochaines étapes pour booster vos présentations"
@@ -717,11 +716,13 @@ msgid "Or use the code:"
msgstr "Ou utilisez le code:"
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/templates/user_registration/new.html.heex:27
#: lib/claper_web/templates/user_session/new.html.heex:46
msgid "Create account"
msgstr "Créer un compte"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.html.heex:81
#: lib/claper_web/templates/user_registration/new.html.heex:23
#: lib/claper_web/templates/user_session/new.html.heex:35
msgid "Password"
@@ -736,3 +737,28 @@ msgstr "Adresse email"
#: lib/claper_web/templates/user_session/new.html.heex:35
msgid "Your password"
msgstr "Votre mot de passe"
#, elixir-autogen, elixir-format
#: lib/claper_web/live/user_settings_live/show.ex:39
msgid "Change the password used to access your account."
msgstr "Changez le mot de passe utilisé pour accéder à votre compte."
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.html.heex:48
msgid "Current password"
msgstr "Mot de passe actuel"
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.html.heex:49
msgid "New password"
msgstr "Nouveau mot de passe"
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.ex:36
msgid "Update your password"
msgstr "Changer votre email"
#, elixir-autogen, elixir-format, fuzzy
#: lib/claper_web/live/user_settings_live/show.ex:89
msgid "Your password has been updated."
msgstr "Votre mot de passe a été mis à jour."