-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd4fd82
commit 3a19af3
Showing
4 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
peachjam/migrations/0167_peachjamsettings_allow_social_logins.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 4.2.15 on 2024-10-16 13:06 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("peachjam", "0166_coredocument_ingestor"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="peachjamsettings", | ||
name="allow_social_logins", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="Allow signups via social accounts", | ||
verbose_name="allow social logins", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% extends "user_account/layout.html" %} | ||
{% load i18n %} | ||
{% block title %} | ||
{% trans "Set Password" %} | ||
{% endblock %} | ||
{% block account-tabs %} | ||
{% include 'user_account/_tabs.html' with active='password' %} | ||
{% endblock %} | ||
{% block account-content %} | ||
<form method="post" action="{% url 'account_set_password' %}"> | ||
{% csrf_token %} | ||
<div class="row"> | ||
<div class="col-lg-6 mx-auto"> | ||
<div class="card"> | ||
<h5 class="card-header">{% trans 'Set password' %}</h5> | ||
<div class="card-body"> | ||
<div class="mb-3"> | ||
<label for="{{ form.password1.id_for_label }}">{{ form.password1.label }}</label> | ||
<input type="password" | ||
class="form-control" | ||
name="{{ form.password1.name }}" | ||
id="{{ form.password1.id_for_label }}" | ||
value="{{ form.password1.value|default:'' }}" | ||
required/> | ||
{% if form.password1.errors %} | ||
<div class="text-danger"> | ||
{% for error in form.password1.errors %}<p>{{ error }}</p>{% endfor %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div class="mb-3"> | ||
<label for="{{ form.password2.id_for_label }}">{{ form.password2.label }}</label> | ||
<input type="password" | ||
class="form-control" | ||
name="{{ form.password2.name }}" | ||
id="{{ form.password2.id_for_label }}" | ||
value="{{ form.password2.value|default:'' }}" | ||
required/> | ||
{% if form.password2.errors %} | ||
<div class="text-danger"> | ||
{% for error in form.password2.errors %}<p>{{ error }}</p>{% endfor %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="card-footer text-end"> | ||
<button type="submit" class="btn btn-success" name="action">{% trans "Set password" %}</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} |