Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
force setting csrftoken on first run page
Browse files Browse the repository at this point in the history
  also bump version
  • Loading branch information
monty5811 committed Sep 13, 2017
1 parent 43a316c commit e2109bd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Expand Up @@ -3,13 +3,19 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [v.2.5.2]
## [v2.5.3]

### Fixed

- Fix csrftoken missing on first run setup

## [v2.5.2]

### Fixed

- Fix bug in first run page

## [v.2.5.1]
## [v2.5.1]

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2.5.2
2.5.3
2 changes: 1 addition & 1 deletion ansible/env_vars/base.yml
@@ -1,7 +1,7 @@
---

git_repo: https://github.com/monty5811/apostello.git
git_version: v2.5.2
git_version: v2.5.3

project_name: apostello
application_name: apostello
Expand Down
2 changes: 1 addition & 1 deletion scripts/ansible_install.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
# setup some constants
AP_VER=v2.5.2
AP_VER=v2.5.3
REPO_URL=https://github.com/monty5811/apostello.git
HOME_DIR=/home/apostello
CUSTOM_VARS_FILE=$HOME_DIR/custom_vars.yml
Expand Down
3 changes: 3 additions & 0 deletions site_config/views.py
Expand Up @@ -7,6 +7,8 @@
from django.core.cache import cache
from django.http import JsonResponse
from django.shortcuts import redirect
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import ensure_csrf_cookie
from django.views.generic import TemplateView, View
from rest_framework.parsers import JSONParser
from twilio.base.exceptions import TwilioException
Expand All @@ -16,6 +18,7 @@
EnvVarSetting = namedtuple('EnvVarSetting', ['env_var_name', 'info', 'val'])


@method_decorator(ensure_csrf_cookie, name='dispatch')
class FirstRunView(TemplateView):
"""View to make initial run experience easier."""
template_name = 'apostello/first_run.html'
Expand Down

0 comments on commit e2109bd

Please sign in to comment.