This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from GreatFruitOmsk/issue_300
Fix broken password change feature
- Loading branch information
Showing
13 changed files
with
291 additions
and
174 deletions.
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
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
19 changes: 19 additions & 0 deletions
19
backend/profile_page/migrations/0003_auto_20190705_1446.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,19 @@ | ||
# Generated by Django 2.1.10 on 2019-07-05 14:46 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profile_page', '0002_auto_20190605_1012'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='profile', | ||
name='company_name', | ||
field=models.CharField(blank=True, default='', max_length=128), | ||
preserve_default=False, | ||
), | ||
] |
14 changes: 14 additions & 0 deletions
14
backend/profile_page/migrations/0004_merge_20190708_0744.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,14 @@ | ||
# Generated by Django 2.1.10 on 2019-07-08 07:44 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profile_page', '0003_auto_20190705_1446'), | ||
('profile_page', '0003_profile_last_active'), | ||
] | ||
|
||
operations = [ | ||
] |
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 was deleted.
Oops, something went wrong.
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,61 @@ | ||
{% extends "admin_base.html" %} | ||
|
||
{% load bootstrap4 %} | ||
|
||
{% block title %}WoTT - Dashboard{% endblock title %} | ||
|
||
{% block dashboard_title %} | ||
<h1 style="margin-bottom: 0">Dashboard</h1> | ||
{% endblock dashboard_title %} | ||
|
||
{% block admin_content %} | ||
<div class="container-fluid p-0"> | ||
|
||
<h1 class="h3 mb-3">Settings</h1> | ||
|
||
<div class="row"> | ||
<div class="col-md-3 col-xl-2"> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<h5 class="card-title mb-0">Profile Settings</h5> | ||
</div> | ||
|
||
<div class="list-group list-group-flush" role="tablist"> | ||
<a class="list-group-item list-group-item-action active" href="{% url 'profile' %}" role="tab"> | ||
Account | ||
</a> | ||
<a class="list-group-item list-group-item-action" href="{% url 'profile_password' %}" role="tab"> | ||
Password | ||
</a> | ||
<a class="list-group-item list-group-item-action" href="{% url 'profile_token' %}" role="tab"> | ||
API token | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-9 col-xl-10"> | ||
<div class="tab-content"> | ||
<div class="tab-pane fade show active" id="account" role="tabpanel"> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<h5 class="card-title mb-0">Public info</h5> | ||
</div> | ||
<div class="card-body"> | ||
<form method="POST" action=""> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
{% buttons %} | ||
<button type="submit" class="btn btn-primary">Save changes</button> | ||
{% endbuttons %} | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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,61 @@ | ||
{% extends "admin_base.html" %} | ||
|
||
{% load bootstrap4 %} | ||
|
||
{% block title %}WoTT - Dashboard{% endblock title %} | ||
|
||
{% block dashboard_title %} | ||
<h1 style="margin-bottom: 0">Dashboard</h1> | ||
{% endblock dashboard_title %} | ||
|
||
{% block admin_content %} | ||
<div class="container-fluid p-0"> | ||
|
||
<h1 class="h3 mb-3">Settings</h1> | ||
|
||
<div class="row"> | ||
<div class="col-md-3 col-xl-2"> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<h5 class="card-title mb-0">Profile Settings</h5> | ||
</div> | ||
|
||
<div class="list-group list-group-flush" role="tablist"> | ||
<a class="list-group-item list-group-item-action" href="{% url 'profile' %}" role="tab"> | ||
Account | ||
</a> | ||
<a class="list-group-item list-group-item-action active" href="{% url 'profile_password' %}" role="tab"> | ||
Password | ||
</a> | ||
<a class="list-group-item list-group-item-action" href="{% url 'profile_token' %}" role="tab"> | ||
API token | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-9 col-xl-10"> | ||
<div class="tab-content"> | ||
<div class="tab-pane fade show active" id="account" role="tabpanel"> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<h5 class="card-title mb-0">Password</h5> | ||
</div> | ||
<div class="card-body"> | ||
<form method="POST" action=""> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
{% buttons %} | ||
<button type="submit" class="btn btn-primary">Save changes</button> | ||
{% endbuttons %} | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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,59 @@ | ||
{% extends "admin_base.html" %} | ||
|
||
{% load bootstrap4 %} | ||
|
||
{% block title %}WoTT - Dashboard{% endblock title %} | ||
|
||
{% block dashboard_title %} | ||
<h1 style="margin-bottom: 0">Dashboard</h1> | ||
{% endblock dashboard_title %} | ||
|
||
{% block admin_content %} | ||
<div class="container-fluid p-0"> | ||
|
||
<h1 class="h3 mb-3">Settings</h1> | ||
|
||
<div class="row"> | ||
<div class="col-md-3 col-xl-2"> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<h5 class="card-title mb-0">Profile Settings</h5> | ||
</div> | ||
|
||
<div class="list-group list-group-flush" role="tablist"> | ||
<a class="list-group-item list-group-item-action" href="{% url 'profile' %}" role="tab"> | ||
Account | ||
</a> | ||
<a class="list-group-item list-group-item-action" href="{% url 'profile_password' %}" role="tab"> | ||
Password | ||
</a> | ||
<a class="list-group-item list-group-item-action active" href="{% url 'profile_token' %}" role="tab"> | ||
API token | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-md-9 col-xl-10"> | ||
<div class="tab-content"> | ||
<div class="tab-pane fade show active" role="tabpanel"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h5 class="card-title mb-0">API token</h5> | ||
</div> | ||
<div class="card-body"> | ||
{% if user.auth_token %} | ||
<div class="form-group"><b><samp id="token-code">{{ user.auth_token }}</samp></b></div> | ||
<a href="{% url 'revoke_api_token' %}" class="btn btn-danger">Revoke token</a> | ||
{% else %} | ||
<a href="{% url 'generate_api_token' %}" class="btn btn-primary">Generate token</a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.