mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
2.3.1 dev (#1252)
2.3.1 / 2020-02-17 ================== **General** * User confirmation emails now have the correct URL format
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2.3.1 / 2020-02-17
|
||||||
|
==================
|
||||||
|
|
||||||
|
**General**
|
||||||
|
* User confirmation emails now have the correct URL format
|
||||||
|
|
||||||
|
|
||||||
2.3.0 / 2020-02-17
|
2.3.0 / 2020-02-17
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ if sys.version_info[0] < 3:
|
|||||||
reload(sys) # noqa: F821
|
reload(sys) # noqa: F821
|
||||||
sys.setdefaultencoding("utf-8")
|
sys.setdefaultencoding("utf-8")
|
||||||
|
|
||||||
__version__ = "2.3.0"
|
__version__ = "2.3.1"
|
||||||
|
|
||||||
|
|
||||||
class CTFdRequest(Request):
|
class CTFdRequest(Request):
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ auth = Blueprint("auth", __name__)
|
|||||||
|
|
||||||
|
|
||||||
@auth.route("/confirm", methods=["POST", "GET"])
|
@auth.route("/confirm", methods=["POST", "GET"])
|
||||||
@auth.route("/confirm/<data>", methods=["GET"])
|
@auth.route("/confirm/<data>", methods=["POST", "GET"])
|
||||||
@ratelimit(method="POST", limit=10, interval=60)
|
@ratelimit(method="POST", limit=10, interval=60)
|
||||||
def confirm(data=None):
|
def confirm(data=None):
|
||||||
if not get_config("verify_emails"):
|
if not get_config("verify_emails"):
|
||||||
|
|||||||
@@ -80,7 +80,9 @@ def verify_email_address(addr):
|
|||||||
get_config("verification_email_body") or DEFAULT_VERIFICATION_EMAIL_BODY,
|
get_config("verification_email_body") or DEFAULT_VERIFICATION_EMAIL_BODY,
|
||||||
ctf_name=get_config("ctf_name"),
|
ctf_name=get_config("ctf_name"),
|
||||||
ctf_description=get_config("ctf_description"),
|
ctf_description=get_config("ctf_description"),
|
||||||
url=url_for("auth.confirm", data=serialize(addr), _external=True),
|
url=url_for(
|
||||||
|
"auth.confirm", data=serialize(addr), _external=True, _method="GET"
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
subject = safe_format(
|
subject = safe_format(
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ author = u"Kevin Chung"
|
|||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
version = u""
|
version = u""
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = u"2.3.0"
|
release = u"2.3.1"
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ctfd",
|
"name": "ctfd",
|
||||||
"version": "2.3.0",
|
"version": "2.3.1",
|
||||||
"description": "CTFd is a Capture The Flag framework focusing on ease of use and customizability. It comes with everything you need to run a CTF and it's easy to customize with plugins and themes.",
|
"description": "CTFd is a Capture The Flag framework focusing on ease of use and customizability. It comes with everything you need to run a CTF and it's easy to customize with plugins and themes.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
Reference in New Issue
Block a user