mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2026-03-22 00:26:22 +00:00
Created password change form
This commit is contained in:
16
src/apps/account/templates/password.html
Normal file
16
src/apps/account/templates/password.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
{% load static %}
|
||||||
|
{% block title %}{{ title }}{% endblock %}
|
||||||
|
{% block meta %}{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<div class="py-8 px-32">
|
||||||
|
<form method="POST"
|
||||||
|
enctype="multipart/form-data"
|
||||||
|
class="flex flex-col items-center justify-center space-y-4 my-auto">
|
||||||
|
<h2 class="text-3xl font-abel">Change password</h2>
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ form }}
|
||||||
|
<button type="submit" class="button bg-skyblue-300 text-gray-500">Change</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
from django.contrib.auth import authenticate, login
|
from django.contrib.auth import authenticate, login
|
||||||
|
from django.contrib.auth.forms import PasswordChangeForm
|
||||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||||
from django.shortcuts import get_object_or_404, redirect, render
|
from django.shortcuts import get_object_or_404, redirect, render
|
||||||
from django.views.generic import ListView
|
from django.views.generic import ListView
|
||||||
|
|||||||
Reference in New Issue
Block a user