Skip to content

Commit

Permalink
update all password fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Dec 20, 2024
1 parent c842a8a commit a78eea7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 33 deletions.
11 changes: 2 additions & 9 deletions backend/templates/v2/account/snippets/classic-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,8 @@ <h1 class="text-gray-900 text-3xl font-bold leading-9 mb-2">
{% include "account/components/email-input.html" %}

<div>
<label>
<span class="block text-sm/6 font-medium text-gray-900 mb-2">Parolă</span>
<input
type="password"
name="password"
autocomplete="new-password"
class="block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-amber-400 sm:text-sm/6"
required>
</label>
{% trans "Password" as password_label %}
{% include "account/components/password-input.html" with field_label=password_label input_name="password" %}

<div class="flex items-center justify-end mt-4">
<a href="{% url 'forgot' %}" class="text-sm/6 text-cyan-700">Ți-ai uitat parola?</a>
Expand Down
29 changes: 5 additions & 24 deletions backend/templates/v2/account/snippets/register-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,12 @@ <h1 class="text-center text-gray-900 text-3xl font-bold leading-9 mb-2">

{% include "account/components/email-input.html" %}

<div>
<label>
<span class="block text-sm/6 font-medium text-gray-900 mb-2">
{% trans "Password" %}
</span>
<input
type="password"
name="password"
class="block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-amber-400 sm:text-sm/6"
required>
</label>
</div>
{% trans "Password" as password_label %}
{% trans "Confirm password" as password_confirm_label %}

<div>
<label>
<span class="block text-sm/6 font-medium text-gray-900 mb-2">
{% trans "Confirm password" %}
</span>
<input
type="password"
name="password_confirm"
class="block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-amber-400 sm:text-sm/6"
required>
</label>
</div>
{% include "account/components/password-input.html" with field_label=password_label input_name="password" password_type="new" %}

{% include "account/components/password-input.html" with field_label=password_confirm_label input_name="password_confirm" password_type="new" %}

<div class="space-y-5">
<div class="flex gap-3">
Expand Down

0 comments on commit a78eea7

Please sign in to comment.