{% extends "base.html" %} {% load static %} {% block title %}Set New Password - Hospital Management System{% endblock %} {% block css %} {% endblock %} {% block content %}

Hospital Management

Set your new password

{% if validlink %}

Create New Password

Please enter your new password below. Make sure it's strong and secure.

{% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{% csrf_token %}
{% if form.new_password1.errors %}
{{ form.new_password1.errors.0 }}
{% endif %}
Password requirements:
At least 8 characters
One uppercase letter
One lowercase letter
One number
{% if form.new_password2.errors %}
{{ form.new_password2.errors.0 }}
{% endif %}
After setting your new password, you'll be redirected to the login page.
{% else %}

Invalid Reset Link

This password reset link is invalid or has expired. Password reset links are only valid for 24 hours.

What happened?
  • The link may have expired (links are valid for 24 hours)
  • The link may have already been used
  • The link may have been copied incorrectly
Need help? Contact Support
{% endif %}
{% endblock %}