File tree Expand file tree Collapse file tree 8 files changed +9
-10
lines changed Expand file tree Collapse file tree 8 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 106
106
REST_SESSION_LOGIN = False
107
107
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
108
108
SITE_ID = 1
109
- ACCOUNT_EMAIL_REQUIRED = True
109
+ ACCOUNT_EMAIL_REQUIRED = False
110
110
ACCOUNT_AUTHENTICATION_METHOD = 'username'
111
- ACCOUNT_EMAIL_VERIFICATION = 'mandatory '
111
+ ACCOUNT_EMAIL_VERIFICATION = 'optional '
112
112
113
113
REST_FRAMEWORK = {
114
114
'DEFAULT_AUTHENTICATION_CLASSES' : (
Original file line number Diff line number Diff line change 1
1
<!-- Signup form -->
2
- < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_verify_email' %} ">
2
+ < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_verify_email' %} "> {% csrf_token %}
3
3
< div class ="form-group ">
4
4
< label for ="key " class ="col-sm-2 control-label "> Key</ label >
5
5
< div class ="col-sm-10 ">
Original file line number Diff line number Diff line change 1
1
<!-- Signup form -->
2
- < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_login' %} ">
2
+ < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_login' %} "> {% csrf_token %}
3
3
< div class ="form-group ">
4
4
< label for ="username " class ="col-sm-2 control-label "> Username</ label >
5
5
< div class ="col-sm-10 ">
Original file line number Diff line number Diff line change 1
1
<!-- Signup form -->
2
- < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_password_change' %} ">
3
-
2
+ < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_password_change' %} "> {% csrf_token %}
4
3
< div class ="form-group ">
5
4
< label for ="new_password1 " class ="col-sm-2 control-label "> Password</ label >
6
5
< div class ="col-sm-10 ">
Original file line number Diff line number Diff line change 1
1
<!-- Signup form -->
2
- < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_password_reset_confirm' %} ">
2
+ < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_password_reset_confirm' %} "> {% csrf_token %}
3
3
< div class ="form-group ">
4
4
< label for ="uid " class ="col-sm-2 control-label "> Uid</ label >
5
5
< div class ="col-sm-10 ">
Original file line number Diff line number Diff line change 1
1
<!-- Signup form -->
2
- < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_password_reset' %} ">
2
+ < form class ="form-horizontal ajax-post " role ="form " action ="{% url 'rest_password_reset' %} "> {% csrf_token %}
3
3
< div class ="form-group ">
4
4
< label for ="email " class ="col-sm-2 control-label "> E-mail</ label >
5
5
< div class ="col-sm-10 ">
Original file line number Diff line number Diff line change 1
1
<!-- Signup form -->
2
- < form class ="form-horizontal ajax-post " id ="signup " role ="form " action ="{% url 'rest_register' %} ">
2
+ < form class ="form-horizontal ajax-post " id ="signup " role ="form " action ="{% url 'rest_register' %} "> {% csrf_token %}
3
3
< div class ="form-group ">
4
4
< label for ="email " class ="col-sm-2 control-label "> Email</ label >
5
5
< div class ="col-sm-10 ">
Original file line number Diff line number Diff line change 1
1
<!-- Signup form -->
2
- < form class ="form-horizontal " id ="signup " role ="form " action ="{% url 'rest_user_details' %} ">
2
+ < form class ="form-horizontal " id ="signup " role ="form " action ="{% url 'rest_user_details' %} "> {% csrf_token %}
3
3
4
4
< div class ="form-group ">
5
5
< label for ="email " class ="col-sm-2 control-label "> Email</ label >
You can’t perform that action at this time.
0 commit comments