-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.50.0: Contact Management redesign.
Fix CodeQL alerts 20220527 #96-102, using is_safe_url even when superfluous. Don't trust HTTP_REFERER header. Upgrade dependencies Redirect to the appropriate dashboard if bad link. Add new workflow for MFA Requests. Fix sort on vincecomm dashboard and case views by last post date, highlight cases with new posts.
- Loading branch information
1 parent
1909c00
commit b986a86
Showing
68 changed files
with
2,376 additions
and
1,333 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
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 |
---|---|---|
|
@@ -83,6 +83,13 @@ class Meta: | |
'countrycode': CountrySelectWidget()} | ||
|
||
|
||
class COGResetMFA(forms.Form): | ||
|
||
reason = forms.CharField( | ||
widget=forms.Textarea(), | ||
label=_('Reason for MFA reset')) | ||
|
||
|
||
class COGInitialPWResetForm(forms.Form): | ||
username = forms.CharField(max_length=200, required=True, label=_("Email")) | ||
|
||
|
@@ -260,9 +267,11 @@ class SignUpForm(UserCreationForm): | |
required=False) | ||
email = forms.CharField( | ||
max_length=254, | ||
widget=forms.TextInput(attrs={'autocomplete':'username'}), | ||
required=True, | ||
help_text=_('This will be your login username. Please note that this field is CASE SENSITIVE.'), | ||
help_text=_('This will be your personal login username. <b>This field is CASE SENSITIVE.</b><br/><b>PLEASE NOTE:</b> Each VINCE user account is intended to be tied to a specific individual. If you would like to use an alias (for example, <i>[email protected]</i>) to receive group notifications, please create your account here first, and once your individual account has been approved, you will have the opportunity to create a group, join an existing group, and otherwise manage the email addresses associated with your organization.'), | ||
label="Email address") | ||
|
||
title = forms.CharField( | ||
max_length=200, | ||
required=False, | ||
|
@@ -279,7 +288,7 @@ class SignUpForm(UserCreationForm): | |
password1 = forms.CharField( | ||
max_length=50, | ||
required=True, | ||
widget=forms.PasswordInput, | ||
widget=forms.PasswordInput(attrs={'autocomplete':"new-password"}), | ||
label="New Password", | ||
help_text=_('Password Requirements:<ul>\ | ||
<li>Minimum length is 8 characters</li>\ | ||
|
@@ -293,7 +302,7 @@ class SignUpForm(UserCreationForm): | |
password2 = forms.CharField( | ||
max_length=50, | ||
required=True, | ||
widget=forms.PasswordInput, | ||
widget=forms.PasswordInput(attrs={'autocomplete':"new-password"}), | ||
label="Password confirmation", | ||
help_text=_('Enter the same password as before, for verification') | ||
) | ||
|
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
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 @@ | ||
{% extends "vince/login.html" %} | ||
|
||
{% load i18n static %} | ||
|
||
{% block content_title %}<h3>VINCE MFA Reset</h3>{% endblock %} | ||
|
||
|
||
{% block content %} | ||
<p> | ||
Please let us know why you need us to reset your multi-factor authentication (MFA) device. To continue the reset, you must follow the directions in the email that will be sent to you upon submitting this form. Once we receive confirmation, an analyst will reset the MFA associated with your account during business hours.</p> | ||
<p>After the reset is complete, you will be prompted to re-associate your MFA device with your VINCE account upon logging in. | ||
</p> | ||
<form action="." method="post" class="form"> | ||
{% csrf_token %} | ||
{{ form }} | ||
<input type="submit" class="primary button expanded search-button" value="Submit"> | ||
</form> | ||
|
||
{% 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 |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
|
||
{% block extrahead %} | ||
<script type="text/javascript" src="{% static 'vince/js/jquery.min.js' %}"></script> | ||
<script type="text/javascript" src="{% static 'vince/js/jquery.qtip.min.js' %}"></script> | ||
<link rel="stylesheet" type="text/css" href="{% static 'vince/css/jquery.qtip.min.css' %}" /> | ||
<script type="text/javascript" src="{% static 'vince/js/signup.js' %}"></script> | ||
<script src="https://www.google.com/recaptcha/api.js"></script> | ||
{% endblock %} | ||
|
@@ -13,6 +15,10 @@ | |
|
||
{% block content %}<div id="content-main"> | ||
|
||
<span class="hidden" id="loginhelp"> | ||
VINCE accounts are intended to be tied to a real person. If you would like to establish a group with multiple people (for example, <i>[email protected]</i>) and use an email list or alias for group notifications, please proceed with creating your individual account here, and once your account has been approved, you can request the creation of your group and manage the email addresses associated with your organization. | ||
</span> | ||
|
||
<form method="post" id="signupform" onsubmit="return noDoubleClicks(this);">{% csrf_token %} | ||
<div class="login-form"> | ||
{% if form.errors %} | ||
|
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
Oops, something went wrong.