aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/scripts/fietsctl.py1
-rw-r--r--fietsboek/views/account.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/fietsboek/scripts/fietsctl.py b/fietsboek/scripts/fietsctl.py
index 3e987d5..d0b5639 100644
--- a/fietsboek/scripts/fietsctl.py
+++ b/fietsboek/scripts/fietsctl.py
@@ -111,6 +111,7 @@ def cmd_user_add(
user = models.User(name=name, email=email, is_verified=True, is_admin=admin)
user.set_password(password)
+ user.roll_session_secret()
with env["request"].tm:
dbsession = env["request"].dbsession
diff --git a/fietsboek/views/account.py b/fietsboek/views/account.py
index 5400f0a..e353360 100644
--- a/fietsboek/views/account.py
+++ b/fietsboek/views/account.py
@@ -60,6 +60,7 @@ def do_create_account(request):
user = models.User(name=name, email=email_addr)
user.set_password(password)
+ user.roll_session_secret()
request.dbsession.add(user)
actions.send_verification_token(request, user)