From 1092ffc9ea55d7daa8fc5c14a8861e92ea555814 Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Mon, 26 Nov 2012 16:21:05 -0500 Subject: [PATCH] Fix #45 --- flask_security/confirmable.py | 2 +- flask_security/passwordless.py | 2 +- flask_security/recoverable.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flask_security/confirmable.py b/flask_security/confirmable.py index 65842e7..a7caf6c 100644 --- a/flask_security/confirmable.py +++ b/flask_security/confirmable.py @@ -53,7 +53,7 @@ def generate_confirmation_token(user): :param user: The user to work with """ - data = [user.id, md5(user.email)] + data = [str(user.id), md5(user.email)] return _security.confirm_serializer.dumps(data) diff --git a/flask_security/passwordless.py b/flask_security/passwordless.py index d6cd518..b0accb2 100644 --- a/flask_security/passwordless.py +++ b/flask_security/passwordless.py @@ -45,7 +45,7 @@ def generate_login_token(user): :param user: The user the token belongs to """ - return _security.login_serializer.dumps([user.id]) + return _security.login_serializer.dumps([str(user.id)]) def login_token_status(token): diff --git a/flask_security/recoverable.py b/flask_security/recoverable.py index deacf23..6aafc11 100644 --- a/flask_security/recoverable.py +++ b/flask_security/recoverable.py @@ -54,7 +54,7 @@ def generate_reset_password_token(user): :param user: The user to work with """ - data = [user.id, md5(user.password)] + data = [str(user.id), md5(user.password)] return _security.reset_serializer.dumps(data)