From 74930d1e9f23708a4bd623a70883061c856e4de5 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 27 Dec 2021 22:10:47 +0100 Subject: [PATCH] Reset password & TOTP when downloading DB --- tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 509e142..1f6080c 100644 --- a/tasks.py +++ b/tasks.py @@ -44,6 +44,8 @@ def download_db(ctx): with ctx.cd(BASE_DIR): ctx.run( "scp ubuntu:/home/gaugendre/blog/db/db.sqlite3 ./db/db.sqlite3", - echo=True, pty=True, ) + with ctx.cd(SRC_DIR): + ctx.run("./manage.py two_factor_disable gaugendre", pty=True) + ctx.run("./manage.py changepassword gaugendre", pty=True)