.settings_tiles> <.tile :if={Plausible.Users.type(@current_user) == :standard} docs="change-email"> <:title> Email address <:subtitle> Change the address associated with your account. <.form :let={f} action={Routes.settings_path(@conn, :update_email)} for={@email_changeset} method="post" > <.input type="text" name="user[current_email]" value={f.data.email} label="Current email" width="w-1/2" mt?={false} disabled /> <.input type="email" field={f[:email]} label="New email" width="w-1/2" /> <.input type="password" field={f[:password]} label="Confirm with password" width="w-1/2" /> <.button type="submit"> Change email <.tile :if={Plausible.Users.type(@current_user) == :sso}> <:title> Email address <:subtitle> Address associated with your account. <.form :let={f} for={@email_changeset}> <.input type="text" name="user[current_email]" value={f.data.email} label="Current email" width="w-1/2" mt?={false} disabled /> <.tile :if={Plausible.Users.type(@current_user) == :standard} docs="reset-password"> <:title> Password <:subtitle> Change your password. <.form :let={f} action={Routes.settings_path(@conn, :update_password)} for={@password_changeset} method="post" > <.input type="password" max_one_error field={f[:old_password]} label="Old password" width="w-1/2" mt?={false} /> <.input type="password" max_one_error field={f[:password]} label="New password" width="w-1/2" /> <.input type="password" max_one_error autocomplete="new-password" field={f[:password_confirmation]} label="Confirm new password" width="w-1/2" />
Lost your recovery codes? Generate new